You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is bad practice to call str.format() in a logger call because it's a waste of compute if the logger ever gets set so that debug calls are ignored. …
What you can do is in your logging.Formatter() call above is specify you want to use str.format()-style formatting. Then here you could do:
logger.debug("current max size {} is {}", path, max_size)
The text was updated successfully, but these errors were encountered:
It is bad practice to call str.format() in a logger call because it's a waste of compute if the logger ever gets set so that debug calls are ignored. …
What you can do is in your logging.Formatter() call above is specify you want to use str.format()-style formatting. Then here you could do:
logger.debug("current max size {} is {}", path, max_size)
The text was updated successfully, but these errors were encountered: