Skip to content

Commit

Permalink
set snowflake connector log level on env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Sep 11, 2023
1 parent ccc7c6a commit fa0f33b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbt/adapters/snowflake/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@


logger = AdapterLogger("Snowflake")

if os.getenv("DBT_SNOWFLAKE_CONNECTOR_DEBUG_LOGGING"):
logger.set_adapter_dependency_log_level("snowflake.connector", "debug")

_TOKEN_REQUEST_URL = "https://{}.snowflakecomputing.com/oauth/token-request"
ROW_VALUE_REGEX = re.compile(r"Row Values: \[(.|\n)*\]")

Expand Down

0 comments on commit fa0f33b

Please sign in to comment.