Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Log noisy messages at DEBUG level #24

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

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
@ImpSy ImpSy closed this as completed May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants