Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirecting warnings to logging module #325

Merged
merged 1 commit into from
Jul 4, 2021

Conversation

JeffAshton
Copy link
Contributor

For logging, using jsonformatter.JsonFormatter without redirecting the warnings module to logging, the standard output is a mix of json and non json.

@@ -14,6 +14,7 @@
from elastalert.auth import Auth

logging.basicConfig()
logging.captureWarnings(True)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jertel jertel merged commit 52a3485 into jertel:master Jul 4, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants