From b0d7f1168d35fd0173f296557ab40bd38e186af1 Mon Sep 17 00:00:00 2001 From: Jeff Ashton Date: Sat, 3 Jul 2021 12:05:53 -0400 Subject: [PATCH] Redirecting warnings to logging module --- elastalert/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/elastalert/util.py b/elastalert/util.py index a5a4d5f7..949639bd 100644 --- a/elastalert/util.py +++ b/elastalert/util.py @@ -14,6 +14,7 @@ from elastalert.auth import Auth logging.basicConfig() +logging.captureWarnings(True) elastalert_logger = logging.getLogger('elastalert')