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 a67838d commit ccc7c6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dbt/adapters/snowflake/connections.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import base64
import datetime
import os

import pytz
import re
from contextlib import contextmanager
Expand Down Expand Up @@ -47,6 +49,8 @@


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 ccc7c6a

Please sign in to comment.