2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Change logger.info in labelTemplate.print to use f-string, correct the order of arguments (#9855)

This commit is contained in:
miggland
2025-06-25 13:10:23 +02:00
committed by GitHub
parent 6915ed52c9
commit 6811132e30

View File

@ -711,10 +711,7 @@ class LabelTemplate(TemplateUploadMixin, ReportTemplateBase):
ValidationError: If there is an error during label printing
"""
logger.info(
"Printing %s labels against template '%s' using plugin '%s'",
len(items),
plugin.slug,
self.name,
f"Printing {len(items)} labels against template '{self.name}' using plugin '{plugin.slug}'"
)
if not output: