Merge pull request #6351 from dpryan79/fixHandlerLogging

Fix the --log-file option in the job handlers
This commit is contained in:
Nate Coraor
2018-07-09 12:41:56 -04:00
committed by GitHub
+9
View File
@@ -723,6 +723,15 @@ 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):
"""