Skip to content

Commit 7d3b67a

Browse files
committed
default to warn
1 parent 1584246 commit 7d3b67a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/notify_slack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ def lambda_handler(event: Dict[str, Any], context: Dict[str, Any]) -> str:
453453
:param context: lambda expected context object
454454
:returns: none
455455
"""
456-
log_level = os.environ.get("LOG_LEVEL", "INFO").upper()
457-
logging.basicConfig(level=getattr(logging, log_level, logging.INFO))
456+
log_level = os.environ.get("LOG_LEVEL", "WARN").upper()
457+
logging.basicConfig(level=getattr(logging, log_level, logging.WARN))
458458

459459
if os.environ.get("LOG_EVENTS", "False") == "True":
460460
logging.info(f"Event logging enabled: `{json.dumps(event)}`")

0 commit comments

Comments
 (0)