refactor(logging): log with the caller's context so records carry trace ids
This commit is contained in:
1 parent
0611e00330
commit
656feab2a4
118 files changed
+512
-511
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user