Opened 7 years ago

Closed 7 years ago

#17358 closed Cleanup/optimization (fixed)

Switch to arg-style logging instead of string interpolation

Reported by: Steve Pulec Owned by: nobody
Component: Core (Other) Version: 1.3
Severity: Normal Keywords: logging
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Change all logging from this

logger.warning("This is a %s" % var)


logger.warning("This is a %s", var)

Attachments (1)

update_logging_style_patch.diff (9.2 KB) - added by Steve Pulec 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Steve Pulec

comment:1 Changed 7 years ago by Aymeric Augustin

Component: UncategorizedCore (Other)
Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Jannis Leidel

Triage Stage: AcceptedReady for checkin

comment:3 Changed 7 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

In [17480]:

Fixed #17358 -- Updated logging calls to use official syntax for arguments instead of string interpolation. Thanks, spulec.

Note: See TracTickets for help on using tickets.
Back to Top