abseil / abseil-py

Abseil Common Libraries (Python)
Apache License 2.0
2.27k stars 246 forks source link

Introduces convenient logging functions for usage in loops: #264

Closed copybara-service[bot] closed 7 months ago

copybara-service[bot] commented 8 months ago

Introduces convenient logging functions for usage in loops:

The functions with the postfix _once only log when they are called for the first time. This is useful when used inside loops while the arguments to be logged do not change. The current alternatives (logging.info, logging.warning, etc.) can load the log too heavily here.