From be220374ded2e4112987ceac760e0c5e8eadecac Mon Sep 17 00:00:00 2001 From: Scott Walsh Date: Thu, 29 Feb 2024 18:22:38 -0400 Subject: [PATCH] Convert print statements to logging statements --- src/snowflake/connector/auth/webbrowser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/snowflake/connector/auth/webbrowser.py b/src/snowflake/connector/auth/webbrowser.py index 41f9f323c..88633f8fa 100644 --- a/src/snowflake/connector/auth/webbrowser.py +++ b/src/snowflake/connector/auth/webbrowser.py @@ -166,7 +166,7 @@ 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, " @@ -174,9 +174,9 @@ def prepare( ) 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."