mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 10:35:40 +00:00
Further reduce log output for weasyprint (#9305)
Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
@ -32,7 +32,7 @@ class ReportConfig(AppConfig):
|
||||
for name, log_manager in logging.root.manager.loggerDict.items():
|
||||
if name.lower().startswith(('fonttools', 'weasyprint')):
|
||||
if hasattr(log_manager, 'setLevel'):
|
||||
log_manager.setLevel(logging.WARNING)
|
||||
log_manager.setLevel(logging.ERROR)
|
||||
|
||||
super().ready()
|
||||
|
||||
|
Reference in New Issue
Block a user