fix no log file bug

This commit is contained in:
Barak Hoffer 2015-10-15 10:13:40 +03:00
parent 6169f1f42e
commit 6a5c4f834d
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ def main():
if WormConfiguration.use_file_logging:
LOG_CONFIG['handlers']['file']['filename'] = log_path
LOG_CONFIG['root']['handlers'].append('file')
else:
del LOG_CONFIG['handlers']['file']
logging.config.dictConfig(LOG_CONFIG)
LOG = logging.getLogger()