2
0
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:
Oliver 2025-03-16 07:42:54 +11:00 committed by GitHub
parent 4eaa5880c1
commit 0e43e8de2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()