From 97c344a17a0188a687629103feefcdf03af8e768 Mon Sep 17 00:00:00 2001 From: Devon Ryan Date: Mon, 18 Jun 2018 00:51:06 +0200 Subject: [PATCH] Fix the --log-file option in the job handlers --- lib/galaxy/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/galaxy/config.py b/lib/galaxy/config.py index 4bfda500d099..31ade4ef110e 100644 --- a/lib/galaxy/config.py +++ b/lib/galaxy/config.py @@ -723,6 +723,16 @@ def __init__(self, **kwargs): '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): """