mozilla-services/metlog-py — pull request #31 by rfk (2012-07-28 05:50:02+00:00)
Title: Don't apply string formatting if no args were given.

Currently if I call client.error(message) with no additional arguments, metlog will apply string formatting to the message. This can cause an error if the message happens to contain a percent symbol or other formatting control char.

This patch copies the approach of the stdlib logging module, where formatting is only done if args were actually provided.