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

INFO type logging to stderr ; should be stdout #1600

Open
TiloGit opened this issue Jan 2, 2025 · 1 comment
Open

INFO type logging to stderr ; should be stdout #1600

TiloGit opened this issue Jan 2, 2025 · 1 comment

Comments

@TiloGit
Copy link

TiloGit commented Jan 2, 2025

Hi,

seems that the operator emits INFO messages to stderr.
stdout seems to be the appropriate place for that.

example:

LogSource:  stderr
{"level":"INFO","ts":"2025-01-02T18:17:11.5370000Z","logger":"controllers.DatadogAgent","msg":"Reconciling DatadogAgent","datadogagent":{"name":"datadog","namespace":"default"}}

Here overview (Azure Insights)
Image

Version:

    Image:         datadoghq.azurecr.io/operator:1.11.1
    Image ID:      datadoghq.azurecr.io/operator@sha256:af8bf62c8819e15255349787c9c293d4522231d32ef72a460c4a2f66c212a3e1
@khewonc
Copy link
Contributor

khewonc commented Jan 3, 2025

I think this is coming from the logger defaults in controller runtime: https://github.com/kubernetes-sigs/controller-runtime/blob/1ac370e560b19321af779df0610622c03106ec77/pkg/log/zap/zap.go#L148-L150

I'll add a feature request for this for our backlog

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