Skip to content

Conversation

@joeriddles
Copy link

Currently if you log an error with slog.Any("err", err), it prints as "err": {}. This updates the JSON handler logic to unwrap errors and print them as strings.

@joeriddles joeriddles changed the title Log any errors with json Log error.Error with Any values in JSON Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant