Commit d84e4c64 authored by Alexander Kruppa's avatar Alexander Kruppa

Make stream parameter of StreamHandler() positional for continued support of...

Make stream parameter of StreamHandler() positional for continued support of Python 2.6 (which I didn't know we supported)
parent 17a4ce8b
......@@ -1023,7 +1023,7 @@ if __name__ == '__main__':
logfile = None if logfilename is None else open(logfilename, "a")
logging.basicConfig(level=loglevel)
if logfile:
logging.getLogger().addHandler(logging.StreamHandler(stream=logfile))
logging.getLogger().addHandler(logging.StreamHandler(logfile))
logging.info("Starting client %s", SETTINGS["CLIENTID"])
generator_bug_type = getattr(FixedBytesGenerator, "bug_type", None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment