From 089880c4aa00b3988d9283eee1a3e5deb500dabb Mon Sep 17 00:00:00 2001 From: Prashant V Date: Sun, 1 Jun 2025 19:21:11 -0700 Subject: [PATCH] Update CHANGELOG for slog support Follow-up to #97. We dropped the `LogAttr` function, so the changelog needs to be updated. --- CHANGELOG.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b1a149..266b687 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,9 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 } ``` -- Add `LogAttr` function to log any error with log/slog with the key "error". - If the provided error is wrapped with errtrace, it will log the full trace. - Otherwise, the original error message will be logged. +- Implement `slog.LogValuer` so errors logged with log/slog log the full trace. - cmd/errtrace: Add `-no-wrapn` option to disable wrapping with generic `WrapN` functions. This is only useful for toolexec mode due to tooling limitations.