librelist archives

« back to archive

Logging in third-party libraries breaks Flask logger

Logging in third-party libraries breaks Flask logger

From:
Calvin Young
Date:
2012-09-02 @ 05:46
I have a few third-party libraries that log messages by calling "
logging.info()" directly with the standard logging Python module (i.e.,
without instantiating a logger object).

It seems that whenever a call to "logging.info()" is made, this breaks the
Flask app's logger.  Is this the expected behavior?  And is there a
recommended work-around for using third-party libraries that use logging
this way?

Thanks all!