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

voice_telemetry
Cort Buffington 7 years ago
parent 710804c4ac
commit 2af755f504

@ -138,6 +138,8 @@ def build_config(_config_file):
'LOG_LEVEL': config.get(section, 'LOG_LEVEL'), 'LOG_LEVEL': config.get(section, 'LOG_LEVEL'),
'LOG_NAME': config.get(section, 'LOG_NAME') 'LOG_NAME': config.get(section, 'LOG_NAME')
}) })
if not CONFIG['LOGGER']['LOG_FILE']:
CONFIG['LOGGER']['LOG_FILE'] = '/dev/null'
elif section == 'ALIASES': elif section == 'ALIASES':
CONFIG['ALIASES'].update({ CONFIG['ALIASES'].update({

Loading…
Cancel
Save

Powered by TurnKey Linux.