Fix the --log-file option in the job handlers

This commit is contained in:
Devon Ryan
2018-06-18 00:51:06 +02:00
parent 6e02c9aff7
commit 97c344a17a
+10
View File
@@ -723,6 +723,16 @@ class Configuration(object):
'qualname': 'COMPLIANCE'
}
if kwargs.get("log_destination", None):
LOGGING_CONFIG_DEFAULT['handlers']['console'] = {
'class': 'logging.FileHandler',
'formatter': 'stack',
'level': 'DEBUG',
'filename': kwargs['log_destination'],
'filters': ['stack']
}
@property
def sentry_dsn_public(self):
"""