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

Startup log not in JSON #516

Open
JenniferMack opened this issue Sep 5, 2023 · 2 comments
Open

Startup log not in JSON #516

JenniferMack opened this issue Sep 5, 2023 · 2 comments
Labels
kind/question Further information is requested

Comments

@JenniferMack
Copy link

logrus.Info("Environment: Kubernetes")

We're seeing

time="2023-09-05T14:14:04Z" level=info msg="Environment: Kubernetes"

in our logs, since it's not JSON, it triggers an error alert. We have the helm chart configured to log JSON, and it works otherwise. We just get this one non-JSON log when reloader restarts.

We're on v1.0.39.

Since this happens early in the startup process, is it possible that LogRus isn't getting passed the JSON formatter this early?

@karl-johan-grahn
Copy link
Contributor

did you use the --log-format=json option?

@karl-johan-grahn karl-johan-grahn added the kind/question Further information is requested label Sep 6, 2023
@JenniferMack
Copy link
Author

We use this in the helm values.yaml file:

reloader:
  logFormat: json

where would --log-format=json go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants