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

Log noisy messages at DEBUG level #24

Open
jystephan opened this issue Jan 24, 2022 · 0 comments
Open

Log noisy messages at DEBUG level #24

jystephan opened this issue Jan 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jystephan
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I've set my Delight log level to INFO, this is important for me as I want to see the URL at which my Delight applications are accessible.

But I'm getting flooded with noisy log messages like:

  • s"Flushing ${eventsBuffer.length} events, now ${pendingEvents.size} pending events"
  • Successfully sent heartbeat
  • Successfully sent payload
  • Successfully sent ack

Describe the solution you'd like
No INFO logs should be sent in a periodic thread while the application is running. They should be log at DEBUG.

Describe alternatives you've considered
Here's the workaround implemented by one of Delight users. He has dynamically set the log level of Delight to ERROR a few seconds after the Spark session initialization, directly in his Spark code, using:

log4j.LogManager.getLogger("co.datamechanics.delight").setLevel(log4j.Level.ERROR)

This way he had the INFO logs at Delight initialization, but not the noisy logs afterwards. It's just a workaround.

@jystephan jystephan added the enhancement New feature or request label Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant