[issue44489] _handle_existing_loggers should respect loggers that were manually disabled

Vinay Sajip report at bugs.python.org
Sun Aug 1 02:31:05 EDT 2021


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

Why couldn't you just do the logging configuration first, then disable any loggers you need to after that?

You can pass a custom configuration dict when instantiating a Sanic app. That could contain a setting for the ddtrace logger, e.g. to set its level to logging.CRITICAL + 1.

----------

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


More information about the Python-bugs-list mailing list