diff --git a/ols/config.py b/ols/config.py index 614707d..fa381c6 100644 --- a/ols/config.py +++ b/ols/config.py @@ -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',