1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-06-14 12:22:25 -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:
Hemna 2025-04-24 20:45:13 -04:00
parent d41064ba05
commit 1ae437581f

View File

@ -85,7 +85,7 @@ def setup_logging(loglevel=None, quiet=False, custom_handler=None):
logging.getLogger(name).propagate = name not in disable_list logging.getLogger(name).propagate = name not in disable_list
handlers = [] handlers = []
if CONF.logging.enable_console_stdout: if CONF.logging.enable_console_stdout and not quiet:
handlers.append( handlers.append(
{ {
'sink': sys.stdout, 'sink': sys.stdout,