Massive-Wiki / massivewikibuilder

Massive Wiki Builder
MIT License
3 stars 3 forks source link

Use '%s'-style formatting in logging.debug() calls #26

Closed peterkaminski closed 2 years ago

peterkaminski commented 2 years ago

In v1.7.0, when LOGLEVEL=DEBUG, many of the logging.debug() statements fail with this error:

TypeError: not all arguments converted during string formatting

This is a reminder that logging.debug() is not print(), and %s-style formatting needs to be used.

See background: You cannot use new-style formatting when using the logging module; use %s instead of {} (StackOverflow).