mal-lang / mal-toolbox

Apache License 2.0
4 stars 2 forks source link

Use format string instead of f-string in logging #48

Closed mrkickling closed 4 months ago

mrkickling commented 5 months ago

https://docs.python.org/3/howto/logging.html#optimization

Recommended way is to use: logger.debug('Message with %s, %s', expensive_func1(), expensive_func2())

instead of

logger.debug(f'Message with {expensice_func1()}, {expensive_func2()}', expensive_func1(), expensive_func2())

Change all logs into this format