Skip to content

Commit 3665a45

Browse files
committed
chore: Add warning message for log level DEBUG
1 parent 7b19175 commit 3665a45

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

redshift_connector/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,17 @@ def connect(
376376
info.put("user_name", user)
377377
info.put("web_identity_token", web_identity_token)
378378

379+
warning_message = """
380+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
381+
****************************************************************************************************************************************
382+
* *
383+
* Log level DEBUG is enabled! *
384+
* WARNING: Log level Debug captures ALL data which may include sensitive information. *
385+
* *
386+
* IMPORTANT: Before sharing logs with support or any third party, ensure all sensitive information is redacted/removed from the logs *
387+
****************************************************************************************************************************************
388+
"""
389+
_logger.debug(warning_message)
379390
_logger.debug(make_divider_block())
380391
_logger.debug("User provided connection arguments")
381392
_logger.debug(make_divider_block())

0 commit comments

Comments
 (0)