anchore / anchore-cli

Simple command-line client to the Anchore Engine service
Apache License 2.0
114 stars 54 forks source link

Log normalization for safer logging statements #70

Closed alfredodeza closed 4 years ago

alfredodeza commented 4 years ago

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.