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.
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.