allow no log file to be named if we're not logging to a file
This commit is contained in:
parent
710804c4ac
commit
2af755f504
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user