Opened 13 years ago

Closed 13 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

Description

Change all logging from this

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

to

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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

by Steve Pulec, 13 years ago

comment:1 by Aymeric Augustin, 13 years ago

Component: UncategorizedCore (Other)
Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 13 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by Jannis Leidel, 13 years ago

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