mirror of
https://github.com/craigerl/aprsd.git
synced 2026-06-02 22:24:42 -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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user