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
This often happens after replacing print with logging
4. Using logging.getLogger(__file__) instead of logging.getLogger(__name__)
5. Sharing a logger across multiple files
E.g.
# Bad
logger.debug('Message with %s', expensive_func())
# Good
if logger.isEnabledFor(logging.DEBUG):
logger.debug('Message with %s', expensive_func())
print
instead ofloging
logging.info
orlogging.getLogger()
instead oflogging.getLogger(__name__)
E.g.
This often happens after replacing
print
withlogging
4. Using
logging.getLogger(__file__)
instead oflogging.getLogger(__name__)
5. Sharing a logger across multiple files
E.g.
Docs: https://docs.python.org/3/howto/logging.html#optimization
7. Not using built-in string formatting features
The text was updated successfully, but these errors were encountered: