~longsleep/snapcraft/snapcraft-debs-plugin

Viewing all changes in revision 135.2.1.

  • Committer: Zygmunt Krynicki
  • Date: 2015-08-26 08:52:09 UTC
  • mto: This revision was merged to the branch mainline in revision 137.
  • Revision ID: zygmunt.krynicki@canonical.com-20150826085209-lqhul7wc8tkqbl35
Correct all the logging calls to pass arguments directly

This patch patches all of snapcraft to change code like this:

logging.info("bla bla %s" % 'arg')

Into:

logging.info("bla bla %s', 'arg')

This is actually the preferred way to work with logging arguments as it
allows the logging module to interpolate the arguments directly and only
if the actual message is emitted.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: