config: Set default debug level to 'warning'

This commit is contained in:
Teemu Ikonen
2023-03-03 15:02:19 +02:00
parent 0152a43ecf
commit b89c4f80bf

View File

@@ -12,6 +12,7 @@ DEFAULT_DATADIR = os.path.expanduser(os.path.join(
os.environ.get('XDG_DATA_HOME', '~/.local/share'), 'ols'))
DEFAULT_CONFFILE = os.path.expanduser(os.path.join(
os.environ.get('XDG_CONFIG_HOME', '~/.config'), 'ols/ols.toml'))
DEFAULT_LOGLEVEL = 'warning'
loglevels = {
'critical': logging.CRITICAL,
@@ -74,8 +75,8 @@ conffile_args = [
'dest': 'debuglevel',
'action': 'store',
'choices': loglevels.keys(),
'default': 'info',
'help': 'Set logging level',
'default': DEFAULT_LOGLEVEL,
'help': f"Set logging level, default '{DEFAULT_LOGLEVEL}'",
}),
(('-T', '--logtimestmps'), {
'dest': 'logtimestamps',