Skip to content

Commit

Permalink
Merge pull request #325 from JeffAshton/logging-warnings
Browse files Browse the repository at this point in the history
Redirecting warnings to logging module
  • Loading branch information
jertel authored Jul 4, 2021
2 parents a5c1d05 + b0d7f11 commit 52a3485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elastalert/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from elastalert.auth import Auth

logging.basicConfig()
logging.captureWarnings(True)
elastalert_logger = logging.getLogger('elastalert')


Expand Down

0 comments on commit 52a3485

Please sign in to comment.