[FIX] Packaging: Wndows: wrong handler used when logging to file

This commit is contained in:
yingliu4203 2014-09-09 19:28:33 -07:00 committed by Simon Lejeune
parent 29e08a272c
commit fb4db6c938
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ def init_logger():
elif os.name == 'posix':
handler = logging.handlers.WatchedFileHandler(logf)
else:
handler = logging.handlers.FileHandler(logf)
handler = logging.FileHandler(logf)
except Exception:
sys.stderr.write("ERROR: couldn't create the logfile directory. Logging to the standard output.\n")
handler = logging.StreamHandler(sys.stdout)