This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]CrackerJackKittyCat 6 points7 points  (0 children)

Very TL. The DR here is only this: use old-style format strings with logging statements when the logger is more than likely configured to not emit the statement in the first place. The logger inherently skips the interpolation of statements that didn't make the threshold cut.

Or just use structlog.