Convert log calls from log('{}'.format(x)) to log('%s', x).

Recent profiles show half the time spent in format, likely for log
messages that will never actually be printed.  Obviously, the right
thing to do is to support '{}' formatting in the log call, which
python-3.2+ does, but hasn't been backported.  *sigh*