Force logging utf8

This commit is contained in:
Ruud committed 2014-10-06 08:16:40 +02:00
1 parent c9638ec3fa
commit d4f2f12924
5 files changed
+26 -15

No files matched your search

+1 -1
View File
@@ -204,7 +204,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
logger.addHandler(hdlr)
# To file
hdlr2 = handlers.RotatingFileHandler(Env.get('log_path'), 'a', 500000, 10, encoding = Env.get('encoding'))
hdlr2 = handlers.RotatingFileHandler(Env.get('log_path'), 'a', 500000, 10, encoding = 'utf-8')
hdlr2.setFormatter(formatter)
logger.addHandler(hdlr2)