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

[BUG] Some logs are not honoring DD_LOG_LEVEL #32790

Open
Romack opened this issue Jan 8, 2025 · 0 comments
Open

[BUG] Some logs are not honoring DD_LOG_LEVEL #32790

Romack opened this issue Jan 8, 2025 · 0 comments

Comments

@Romack
Copy link

Romack commented Jan 8, 2025

I have set DD_LOG_LEVEL to WARN in one of our applications and INFO logs are still being emitted from the following modules:

pkg/serializer/serializer.go:507
pkg/util/cloudproviders/cloudproviders.go:67
comp/metadata/inventoryotel/inventoryotelimpl/inventoryotel.go:214

At first glance, it looks like it may be an issue with the logger methods that accept a string format. e.g. log.Infof, log.Debugf.

Agent Environment

This is a Heroku application using heroku-buildpack-datadog
Datadog Agent 7.60.1-1

Describe what happened:
We set DD_LOG_LEVEL to WARN, but INFO level logs are still emitted

Describe what you expected:
Only logs with a level of WARN or above are emitted (WARN, ERROR, CRITICAL)

Steps to reproduce the issue:
Set DD_LOG_LEVEL to WARN and start up the application. You will still see some INFO level logs emitted

Additional environment details (Operating System, Cloud provider, etc):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants