fedora 23 fails to write utf-8 errors otherwise
This commit is contained in:
parent
ca03f71659
commit
54f5ba33e1
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue