[New-bugs-announce] [issue43759] StreamHandler does not print to sys.stderr immediately

Nguyen Thai Binh report at bugs.python.org
Wed Apr 7 04:07:48 EDT 2021


New submission from Nguyen Thai Binh <binhnt.mdev at gmail.com>:

When logger.exception() is called in a `catch` clause, it never logs to sys.stderr immediately. Sometimes it only outputs when the program almost finishes. I don't know how to reproduce as it is occasional. Attached is the logging configuration for my program.

Thank you.

----------
components: Library (Lib)
files: logger.py
messages: 390404
nosy: MunchDev
priority: normal
severity: normal
status: open
title: StreamHandler does not print to sys.stderr immediately
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49937/logger.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43759>
_______________________________________


More information about the New-bugs-announce mailing list