diff --git a/src/snowflake/connector/auth/oauth_code.py b/src/snowflake/connector/auth/oauth_code.py index 49de0f2a6..058d53727 100644 --- a/src/snowflake/connector/auth/oauth_code.py +++ b/src/snowflake/connector/auth/oauth_code.py @@ -68,7 +68,7 @@ def __init__( self.redirect_uri = redirect_uri self.scope = scope self._state = secrets.token_urlsafe(43) - logger.debug("chose oauth state: %s", self._state) + logger.debug("chose oauth state: %s", "".join("*" for _ in self._state)) self._oauth_token = None self._protocol = "http"