fedora 23 fails to write utf-8 errors otherwise

This commit is contained in:
j 2016-02-12 18:37:21 +05:30
parent ca03f71659
commit 54f5ba33e1
1 changed files with 2 additions and 1 deletions

View File

@ -101,8 +101,9 @@ def run():
logging.basicConfig(level=logging.DEBUG, format=log_format)
else:
logging.basicConfig(level=logging.DEBUG,
filename=settings.log_path, filemode='w',
handlers=[logging.FileHandler(settings.log_path, 'w', 'utf-8')],
format=log_format)
options = {
'debug': False,
'log_function': log_request,