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:
Joshua Harlow 2016-02-19 18:41:59 -08:00 committed by Dmitry Tantsur
parent 9cf9c74513
commit bd9f7ca8e8
1 changed files with 2 additions and 2 deletions

View File

@ -618,7 +618,7 @@ class PeriodicWorker(object):
delay = (self._RESCHEDULE_DELAY +
random().random() * self._RESCHEDULE_JITTER)
self._log.error("Failed to submit periodic function "
"%s, retrying after %.2f sec. "
"'%s', retrying after %.2f sec. "
"Error: %s",
cb_name, delay, exc)
self._schedule.push(self._now_func() + delay,
@ -651,7 +651,7 @@ class PeriodicWorker(object):
cb, *args, **kwargs)
except _SCHEDULE_RETRY_EXCEPTIONS as exc:
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
self._immediates.append(index)
else: