Fixed log msg bug.
This commit is contained in:
parent
0cb7d6e792
commit
7277e6f76e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue