News for hackers. Stuff that matters.
Re:Flake8-Logging by globular-toast on Tuesday September 12, 2023 @06:05AM (#37478877)
Why would you log an error for an expected path? That should just be an info or debug level log, not error. In any case, it's really easy to disable errors either by line, module or project if really necessary.
Re:Flake8-Logging by teddyh on Tuesday September 12, 2023 @04:18PM (#37487581)
If you had said log.critical(), I might (might) have agreed with you. But a log.error() is not necessarily an error on the Python level, and should not necessarily spam a backtrace into the log.