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

fix: JSON formatted logs for all Coordinator and marble-injector messages #764

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

daniel-weisse
Copy link
Member

Proposed changes

  • Fix Coordinator not writing JSON formatted log messages for http internal errors
  • Adapt marlbe-inecjtor to use zap.Logger for JSON formatted logs instead of Go's standard library log.Logger

Copy link

netlify bot commented Nov 15, 2024

Deploy Preview for marblerun-docs canceled.

Name Link
🔨 Latest commit 64de744
🔍 Latest deploy log https://app.netlify.com/sites/marblerun-docs/deploys/673af0627036cc0008067645

@daniel-weisse daniel-weisse force-pushed the dw/http-json-logging branch 2 times, most recently from 97104b1 to 41a8290 Compare November 15, 2024 10:25
CMakeLists.txt Show resolved Hide resolved
return log.New(logWrapper{zapLogger}, "", 0)
}

// loggerWrapper implements [io.Writer] by writing any data to the error level of the embedded [*zap.Logger].
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// loggerWrapper implements [io.Writer] by writing any data to the error level of the embedded [*zap.Logger].
// logWrapper implements [io.Writer] by writing any data to the error level of the embedded [*zap.Logger].

nit

@daniel-weisse daniel-weisse merged commit 47b1793 into master Nov 18, 2024
8 checks passed
@daniel-weisse daniel-weisse deleted the dw/http-json-logging branch November 18, 2024 08:06
@daniel-weisse daniel-weisse added the bug fix This change fixes a user facing bug from the previous release label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix This change fixes a user facing bug from the previous release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants