Skip to content

Commit

Permalink
Convert print statements to logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
invisiblethreat committed Feb 29, 2024
1 parent 066f1ec commit be22037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/snowflake/connector/auth/webbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ def prepare(
)
return

print(
logger.info(
"Initiating login request with your identity provider. A "
"browser window should have opened for you to complete the "
"login. If you can't see it, check existing browser windows, "
"or your OS settings. Press CTRL+C to abort and try again..."
)

logger.debug("step 2: open a browser")
print(f"Going to open: {sso_url} to authenticate...")
logger.info(f"Going to open: {sso_url} to authenticate...")
if not self._webbrowser.open_new(sso_url):
print(
logger.warning(
"We were unable to open a browser window for you, "
"please open the url above manually then paste the "
"URL you are redirected to into the terminal."
Expand Down

0 comments on commit be22037

Please sign in to comment.