mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-13 03:42:29 -04:00
Honor quiet setting for log.setup_logging
This updates the setup_logging() to honor the quiet setting. This means that aprsd won't log to stdout when quiet is passed in as True.
This commit is contained in:
parent
d41064ba05
commit
1ae437581f
@ -85,7 +85,7 @@ def setup_logging(loglevel=None, quiet=False, custom_handler=None):
|
||||
logging.getLogger(name).propagate = name not in disable_list
|
||||
|
||||
handlers = []
|
||||
if CONF.logging.enable_console_stdout:
|
||||
if CONF.logging.enable_console_stdout and not quiet:
|
||||
handlers.append(
|
||||
{
|
||||
'sink': sys.stdout,
|
||||
|
Loading…
x
Reference in New Issue
Block a user