Python logging with string formatting issue

A post was split to a new topic: How to change log message prefix