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
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user