From bd9f7ca8e88e49ed80c145b2d3b320a928f2375e Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 19 Feb 2016 18:41:59 -0800 Subject: [PATCH] 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 --- futurist/periodics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/futurist/periodics.py b/futurist/periodics.py index 71d772a..4762735 100644 --- a/futurist/periodics.py +++ b/futurist/periodics.py @@ -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: