mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +00:00
Further reduce log output for weasyprint (#9305)
Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
parent
4eaa5880c1
commit
0e43e8de2d
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user