Opened 4 years ago

Closed 3 years ago

#17358 closed Cleanup/optimization (fixed)

Switch to arg-style logging instead of string interpolation

Reported by: spulec 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 spulec 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by spulec

comment:1 Changed 4 years ago by aaugustin

  • Component changed from Uncategorized to Core (Other)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:3 Changed 3 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

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