mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 01:15:20 +00:00
Further reduce log output for weasyprint (#9305)
Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
1 parent
4eaa5880c1
commit
0e43e8de2d
1 file changed
+1
-1
@@ -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