From 2af755f504e6cf3e90657940e1b516861c77eaf6 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Tue, 5 Feb 2019 08:48:02 -0600 Subject: [PATCH] allow no log file to be named if we're not logging to a file --- config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.py b/config.py index 8108040..5de0d69 100755 --- a/config.py +++ b/config.py @@ -138,6 +138,8 @@ def build_config(_config_file): 'LOG_LEVEL': config.get(section, 'LOG_LEVEL'), 'LOG_NAME': config.get(section, 'LOG_NAME') }) + if not CONFIG['LOGGER']['LOG_FILE']: + CONFIG['LOGGER']['LOG_FILE'] = '/dev/null' elif section == 'ALIASES': CONFIG['ALIASES'].update({