sources/oauth: improve debug logging
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
644ff4a90c
commit
35bcd5d174
|
@ -45,6 +45,7 @@ class BaseOAuthClient:
|
|||
profile_url = self.source.profile_url
|
||||
try:
|
||||
response = self.do_request("get", profile_url, token=token)
|
||||
LOGGER.debug(response.text)
|
||||
response.raise_for_status()
|
||||
except RequestException as exc:
|
||||
LOGGER.warning("Unable to fetch user profile", exc=exc)
|
||||
|
|
|
@ -65,6 +65,7 @@ class OAuth2Client(BaseOAuthClient):
|
|||
data=args,
|
||||
headers=self._default_headers,
|
||||
)
|
||||
LOGGER.debug(response.text)
|
||||
response.raise_for_status()
|
||||
except RequestException as exc:
|
||||
LOGGER.warning("Unable to fetch access token", exc=exc)
|
||||
|
|
Reference in New Issue