Fixed log msg bug.

This commit is contained in:
Michael Herzberg 2017-09-17 17:45:01 +01:00
parent 0cb7d6e792
commit 7277e6f76e
1 changed files with 5 additions and 5 deletions

View File

@ -65,11 +65,11 @@ class MysqlBackend:
raise last_exception
else:
factor = 0.2
logmsg = """Exception on mysql connection attempt """
"""{} of {}, wating {}s +/- {}% before retrying...""".format(
t + 1,
const_mysql_maxtries(),
const_mysql_try_wait(), factor * 100)
logmsg = ("Exception on mysql connection attempt "
"{} of {}, wating {}s +/- {}% before retrying..."
).format(t + 1,
const_mysql_maxtries(),
const_mysql_try_wait(), factor * 100)
if t == 0:
log_exception(logmsg, 3, self.ext_id)
else: