Sets the StreamHandler's stream to the specified value, if it is different. Returns the old stream, if the stream was changed, or None if it wasn't.
logging/StreamHandler.setStream
StreamHandler.setStream