-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi,
you pointed to that piece of code in an StackOverflow comment.
bot/src/tools/libs/logging_utils.py
Lines 45 to 50 in da53d06
| log = logging.getLogger(app_name) | |
| stderr_handler = _stream_handler(logstream=sys.stderr, loglevel=logging.DEBUG, logname='stderr') | |
| log.addHandler(stderr_handler) | |
| stdout_handler = _stream_handler( | |
| logstream=sys.stdout, loglevel=logging.INFO, logname='stdout', logfilters=[MaxLevelFilter(logging.INFO)] | |
| ) |
I'm not sure if I get it right here. But doesn't this produce duplicated logs between stdout and stderr?
The stderr handle does log everything (all levels) to stderr not matter if the stdout handle does log something to stdout.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels