Skip to content

Commit

Permalink
Merge pull request #245 from opodoprigora/log-current-session-id
Browse files Browse the repository at this point in the history
Log Current Session ID
  • Loading branch information
sfc-gh-tmathew authored Apr 11, 2024
2 parents d5c3aea + 5ddea4c commit ac257a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schemachange/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
_log_auth_type = "Proceeding with %s authentication"
_log_pk_enc = "No private key passphrase provided. Assuming the key is not encrypted."
_log_okta_ep = "Okta Endpoint: %s"
_log_current_session_id = "Current session ID: {current_session_id}"

# endregion Global Variables

Expand Down Expand Up @@ -281,6 +282,7 @@ def __init__(self, config):
self.verbose = config["verbose"]
if self.set_connection_args():
self.con = snowflake.connector.connect(**self.conArgs)
print(_log_current_session_id.format(current_session_id=self.con.session_id))
if not self.autocommit:
self.con.autocommit(False)
else:
Expand Down

0 comments on commit ac257a2

Please sign in to comment.