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,9 +65,9 @@ class MysqlBackend:
raise last_exception
else:
factor = 0.2
logmsg = """Exception on mysql connection attempt """
"""{} of {}, wating {}s +/- {}% before retrying...""".format(
t + 1,
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: