Fix a bad logging line when handling errors

pull/152/head
Mike Lang 5 years ago
parent 59ee5cf5c0
commit 2efe1d6218

@ -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

Loading…
Cancel
Save