3 ms·
> where is the f-string described as suboptimal? I guess it's implicit in that f-strings, as arguments, will be evaluated before the logging function can even
by aib 4y ago
> where is the f-string described as suboptimal?
I guess it's implicit in that f-strings, as arguments, will be evaluated before the logging function can even run whereas `debug("...", heavy_obj)` will avoid a potentially expensive `str(heavy_obj)` (or whatever the string conversion warrants.)
As for raiseExceptions, I'm not sure it's for optimization. It looks like an old sanity check for bad logging configurations.