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

all: set severity hint in most log output #871

Merged
merged 1 commit into from
Dec 6, 2024
Merged

all: set severity hint in most log output #871

merged 1 commit into from
Dec 6, 2024

Conversation

keegancsmith
Copy link
Member

I was inspecting logs in GKE and it incorrectly categorized the severity of nearly all logs from zoekt-webserver and zoekt-indexserver. This is a hack to make it work better without putting in the bigger work of migrating us to structured logging.

Test Plan: go test

I was inspecting logs in GKE and it incorrectly categorized the severity
of nearly all logs from zoekt-webserver and zoekt-indexserver. This is a
hack to make it work better without putting in the bigger work of
migrating us to structured logging.

Test Plan: go test
@keegancsmith keegancsmith requested a review from a team December 5, 2024 11:10
@cla-bot cla-bot bot added the cla-signed label Dec 5, 2024
Copy link
Member

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Checking I understand, this hint will let GKE categorize these as info, debug, etc.? And without any hint, it defaults to error.

@keegancsmith
Copy link
Member Author

Yup, I believe so. To be honest the documentation is very light on this so this is a bit of a shot in the dark. If it doesn't work it might finally be time to fully transition to structured logging.

@keegancsmith keegancsmith merged commit 39aae4e into main Dec 6, 2024
9 checks passed
@keegancsmith keegancsmith deleted the k/log branch December 6, 2024 05:39
@keegancsmith
Copy link
Member Author

Reporting back here: it didn't work. Guess we need to add proper support for structured logging to get this.

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

Successfully merging this pull request may close these issues.

2 participants