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
@@ -677,7 +677,7 @@ func (m *Manager) push(ctx context.Context, dir, branch, remoteURL string) error
// `git push -u` left behind previously. A post-publication metadata
// failure must not cause push to report an error.
if err := m.recordUpstream(r, branch, ref); err != nil {
m.logger().Warn("record branch upstream", "branch", branch, "err", err)
m.logger().WarnContext(ctx, "record branch upstream", "branch", branch, "err", err)
}
return nil
}