Commit 5351aa91 authored by Vincent Pelletier's avatar Vincent Pelletier

Use multiple parameters to logging method rather than % operator.

This reduces the cost of invoking log method when the log line is not to
be emitted.
Also, don't put a space before a colon.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1684 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 21bc6205
......@@ -160,7 +160,7 @@ class Application(object):
self.operational = False
except PrimaryFailure, msg:
logging.error('primary master is down : %s' % msg)
logging.error('primary master is down: %s', msg)
def connectToPrimary(self):
"""Find a primary master node, and connect to it.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment