allow no log file to be named if we're not logging to a file

This commit is contained in:
Cort Buffington 2019-02-05 08:48:02 -06:00
parent 710804c4ac
commit 2af755f504

View File

@ -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({