It may be a bit slower. The idea was to try to not call potentially slow methods gathering things for logging when we aren't running at a log level where they would actually be logged.
Another approach would be to export the global logging level from the logging module and then put if statements around all logging code above log level error.
It may be a bit slower. The idea was to try to not call potentially slow methods gathering things for logging when we aren't running at a log level where they would actually be logged.
Another approach would be to export the global logging level from the logging module and then put if statements around all logging code above log level error.