Skip to content

Commit 8729348

Browse files
committed
Improve logging around re-using/creating a change
1 parent 0172770 commit 8729348

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmd/submitplan.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,13 @@ func SubmitPlan(signals chan os.Signal, ready chan bool) int {
251251
}
252252

253253
changeUuid = *maybeChangeUuid
254+
lf["change"] = changeUuid
255+
log.WithContext(ctx).WithFields(lf).Info("created a new change")
256+
} else {
257+
lf["change"] = changeUuid
258+
log.WithContext(ctx).WithFields(lf).Info("re-using change")
254259
}
255260

256-
lf["change"] = changeUuid
257-
log.WithContext(ctx).WithFields(lf).Info("created a new change")
258-
259261
receivedItems := []*sdp.Reference{}
260262

261263
if len(queries) > 0 {

0 commit comments

Comments
 (0)