[FIX] Packaging: Wndows: wrong handler used when logging to file
This commit is contained in:
parent
29e08a272c
commit
fb4db6c938
|
@ -160,7 +160,7 @@ def init_logger():
|
||||||
elif os.name == 'posix':
|
elif os.name == 'posix':
|
||||||
handler = logging.handlers.WatchedFileHandler(logf)
|
handler = logging.handlers.WatchedFileHandler(logf)
|
||||||
else:
|
else:
|
||||||
handler = logging.handlers.FileHandler(logf)
|
handler = logging.FileHandler(logf)
|
||||||
except Exception:
|
except Exception:
|
||||||
sys.stderr.write("ERROR: couldn't create the logfile directory. Logging to the standard output.\n")
|
sys.stderr.write("ERROR: couldn't create the logfile directory. Logging to the standard output.\n")
|
||||||
handler = logging.StreamHandler(sys.stdout)
|
handler = logging.StreamHandler(sys.stdout)
|
||||||
|
|
Loading…
Reference in New Issue