Changed logging to UTF-8

This commit is contained in:
Philip Ridout 2013-10-20 21:34:46 +01:00
parent 57464cfc6a
commit 051fa9db8f
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ def set_up_logging(log_path):
""" """
check_directory_exists(log_path, True) check_directory_exists(log_path, True)
filename = os.path.join(log_path, 'openlp.log') filename = os.path.join(log_path, 'openlp.log')
logfile = logging.FileHandler(filename, 'w') logfile = logging.FileHandler(filename, 'w', encoding="UTF-8")
logfile.setFormatter(logging.Formatter('%(asctime)s %(name)-55s %(levelname)-8s %(message)s')) logfile.setFormatter(logging.Formatter('%(asctime)s %(name)-55s %(levelname)-8s %(message)s'))
log.addHandler(logfile) log.addHandler(logfile)
if log.isEnabledFor(logging.DEBUG): if log.isEnabledFor(logging.DEBUG):