NREL / ditto

DiTTo is a Distribution Transformation Tool that aims at providing an open source framework to convert various distribution systems modeling formats.
https://nrel.github.io/ditto/
BSD 3-Clause "New" or "Revised" License
69 stars 36 forks source link

Log messages should use % formatting #332

Open daniel-thom opened 4 years ago

daniel-thom commented 4 years ago

Many log messages, including debug messages, use string formatting in the form logger.debug("var={}".format(var)). This can cause a performance issue because the string is constructed even if that log level is disabled.

All log messages should use logger.debug("var=%s", var).