Skip to content

Files

Latest commit

 

History

History
24 lines (14 loc) · 485 Bytes

logging-unsupported-format.md

File metadata and controls

24 lines (14 loc) · 485 Bytes

Pattern: Logging unsupported format

Issue: -

Description

Calls to logging that contain unsupported format character will raise ValueError at runtime. Update code so that all format character are valid.

Example of incorrect code:

logging.warn('Hello%20World%s', "!")

Example of correct code:

logging.warn('Hello%%20World%s', "!") # escaped %20

Further Reading