refactor(logging): log with the caller's context so records carry trace ids

This commit is contained in:
sam committed 2026-10-25 23:30:01 +11:00
1 parent 0611e00330
commit 656feab2a4
118 files changed
+512 -511

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ import (
func notify(ctx context.Context, tc *TaskContext, kind string) {
if tc.Task.IsForgeBacked() {
if _, err := tc.Forge.Comment(ctx, tc.Task.Owner, tc.Task.Repo, tc.Task.IssueNumber, deliveryNotice(tc, kind)); err != nil {
tc.Log.Warn("delivery notice not posted",
tc.Log.WarnContext(ctx, "delivery notice not posted",
"kind", kind, "issue", tc.Task.IssueNumber, "err", err)
}
}