Message 69167

Author
JonLevy
Date
2021-08-05.20:40:14
Message id
69167

Content

__init__.py provides useful logging statement during database update. However, these are suppressed when using a logging config file. This happens because the logger instance in __init__.py is created before the logging config file is applied in commandline.py, and the default behavior of logging.config.fileConfig is to disable existing loggers.

This can be corrected by passing disable_existing_loggers=False to logging.config.fileConfig.[1]

https://docs.python.org/3/library/logging.config.html#logging.config.fileConfig

History
Date User Action Args
2021-08-05 20:40:14JonLevysetmessageid: <1628188814.7809098.4BZNNQVSB22UDVYK.issue10637@tryton.org>
2021-08-05 20:40:14JonLevylinkissue10637 messages
2021-08-05 20:40:14JonLevycreate

Showing 10 items. Show all history (warning: this could be VERY long)