diff --git a/ydb/aio/credentials.py b/ydb/aio/credentials.py index 9edb8fe4..3bfac363 100644 --- a/ydb/aio/credentials.py +++ b/ydb/aio/credentials.py @@ -62,7 +62,7 @@ async def _refresh_token(self, should_raise=False): except Exception as e: self.last_error = str(e) - self.logger.error("Failed to refresh token async: %s", e) + self.logger.error("Failed to refresh token async: %s", e, exc_info=True) if should_raise: raise issues.ConnectionError( "%s: %s.\n%s" % (self.__class__.__name__, self.last_error, self.extra_error_message) diff --git a/ydb/credentials.py b/ydb/credentials.py index c7e1cec2..eca94e11 100644 --- a/ydb/credentials.py +++ b/ydb/credentials.py @@ -118,7 +118,7 @@ def _refresh_token(self, should_raise=False): except Exception as e: self.last_error = str(e) - self.logger.error("Failed to refresh token: %s", e) + self.logger.error("Failed to refresh token: %s", e, exc_info=True) if should_raise: raise issues.ConnectionError( "%s: %s.\n%s" % (self.__class__.__name__, self.last_error, self.extra_error_message)