From 2efe1d62186c50614bac1f2aef1212e61cbf3aa6 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Wed, 6 Nov 2019 14:24:51 -0800 Subject: [PATCH] Fix a bad logging line when handling errors --- common/common/googleapis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/common/googleapis.py b/common/common/googleapis.py index 51c59df..b4c028a 100644 --- a/common/common/googleapis.py +++ b/common/common/googleapis.py @@ -1,5 +1,6 @@ import time +import logging import gevent @@ -55,7 +56,7 @@ class GoogleAPIClient(object): )) gevent.spawn_later(expires_in - self.ACCESS_TOKEN_REFRESH_TIME_BEFORE_EXPIRY, self.get_access_token) except Exception: - self.logger.exception("Failed to fetch access token, retrying") + logging.exception("Failed to fetch access token, retrying") self.wait(self.ACCESS_TOKEN_ERROR_RETRY_INTERVAL) else: break