xxxxxxxxxx
# The stdlib logging package in Python encourages the C-style message
# format string and passing variables as arguments to its log method.
# For example,
logging.debug("Result x = %d, y = %d" % (x, y)) # Bad
logging.debug("Result x = %d, y = %d", x, y) # Good
# or
logging.debug("Result x = %(x)d, y = %(y)d" % {"x": x, "y": y}) # Bad
logging.debug("Result x = %(x)d, y = %(y)d", {"x": x, "y": y}) # Good