Using this type of logging statements is safe because the logging module will try to do the interpolation and fallback with the traceback in logging, instead of breaking the app.
I added a couple of FIXME notes because sys.stderr.write is being called directly in the same fashion, which might still break if .format() fails.
Using this type of logging statements is safe because the logging module will try to do the interpolation and fallback with the traceback in logging, instead of breaking the app.
I added a couple of
FIXME
notes becausesys.stderr.write
is being called directly in the same fashion, which might still break if.format()
fails.