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