Skip to content

fix(logger): correctly print slog attribute values for json output - #716

Merged
MarvinJWendt merged 2 commits into
pterm:masterfrom
KimNorgaard:master
Jun 6, 2025
Merged

MarvinJWendt merged 2 commits into
pterm:masterfrom
KimNorgaard:master

Conversation

@KimNorgaard

Copy link
Copy Markdown
Contributor

This fixes a bug where slog values wasn't printed. The bug happened because json.Marshal didn't know about the slog.Value type.

Fixes #715

This fixes a bug where slog values wasn't printed. The bug happened
because json.Marshal didn't know about the slog.Value type.

@MarvinJWendt MarvinJWendt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thanks for contributing 🚀

@MarvinJWendt
MarvinJWendt merged commit 3be86ba into pterm:master Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logger omits slog values when logging with json format

2 participants