Commit 8f36fa10 authored by Matt Traudt's avatar Matt Traudt Committed by Matt Traudt
Browse files

Remove log_level from config.ini

parent 00ddfda5
......@@ -2,8 +2,5 @@
datadir = ${sbws_home}/datadir
sbws_home = /home/user/.sbws
[general]
log_level = notice
[client]
nickname = IDidntEditTheSBWSConfig
......@@ -5,8 +5,6 @@
[general]
# Days into the past that measurements are considered valid
data_period = 5
# Valid levels, from nosiest to quietest: debug, info, notice, warn, error
log_level = notice
[client]
# A human-readable string with chars in a-zA-Z0-9 to identify your scanner
......
[paths]
datadir = ${sbws_home}/datadir
[general]
# Valid levels, from noisest to quietest: debug, info, notice, warn, error
log_level = notice
[client]
nickname = IDidntEditTheSBWSConfig
......@@ -127,13 +127,9 @@ def _validate_general(conf):
ints = {
'data_period': {'minimum': 1, 'maximum': None},
}
enums = {
'log_level': {'valid': ['debug', 'info', 'notice', 'warn', 'error']},
}
all_valid_keys = list(ints.keys()) + list(enums.keys())
all_valid_keys = list(ints.keys())
errors.extend(_validate_section_keys(conf, sec, all_valid_keys, err_tmpl))
errors.extend(_validate_section_ints(conf, sec, ints, err_tmpl))
errors.extend(_validate_section_enums(conf, sec, enums, err_tmpl))
return errors
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment