Skip to content

Commit

Permalink
Use log.warning instead of exception to hide traceback (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-turbaszek authored May 21, 2024
1 parent 506c695 commit 9cdf993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snowflake/cli/plugins/connection/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def is_regionless_redirect(conn: SnowflakeConnection) -> bool:
return cursor.fetchone()["REGIONLESS"].lower() == "true"
except:
# by default, assume that
log.exception("Cannot determine regionless redirect; assuming True.")
log.warning("Cannot determine regionless redirect; assuming True.")
return True


Expand Down

0 comments on commit 9cdf993

Please sign in to comment.