Single quote the callables name (when submission errors)
The rest of the code single quotes it so this code might as well to (to follow the existing logging style). Change-Id: Ibd2a8b49d11dcd32d9168a96950e08616ac1c54d
This commit is contained in:
parent
9cf9c74513
commit
bd9f7ca8e8
|
@ -618,7 +618,7 @@ class PeriodicWorker(object):
|
||||||
delay = (self._RESCHEDULE_DELAY +
|
delay = (self._RESCHEDULE_DELAY +
|
||||||
random().random() * self._RESCHEDULE_JITTER)
|
random().random() * self._RESCHEDULE_JITTER)
|
||||||
self._log.error("Failed to submit periodic function "
|
self._log.error("Failed to submit periodic function "
|
||||||
"%s, retrying after %.2f sec. "
|
"'%s', retrying after %.2f sec. "
|
||||||
"Error: %s",
|
"Error: %s",
|
||||||
cb_name, delay, exc)
|
cb_name, delay, exc)
|
||||||
self._schedule.push(self._now_func() + delay,
|
self._schedule.push(self._now_func() + delay,
|
||||||
|
@ -651,7 +651,7 @@ class PeriodicWorker(object):
|
||||||
cb, *args, **kwargs)
|
cb, *args, **kwargs)
|
||||||
except _SCHEDULE_RETRY_EXCEPTIONS as exc:
|
except _SCHEDULE_RETRY_EXCEPTIONS as exc:
|
||||||
self._log.error("Failed to submit immediate function "
|
self._log.error("Failed to submit immediate function "
|
||||||
"%s, retrying. Error: %s", cb_name, exc)
|
"'%s', retrying. Error: %s", cb_name, exc)
|
||||||
# Restart as soon as possible
|
# Restart as soon as possible
|
||||||
self._immediates.append(index)
|
self._immediates.append(index)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue