Skip to content

Commit e2369f2

Browse files
committed
incoming/web: fix cancellation response logging
1 parent d6da0ab commit e2369f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/incoming/web/api_files.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ func (c *FilesController) listenForCancellations() {
7272
for {
7373
// Wait for a message
7474
cancel := <-c.cancellationResponses
75-
c.logger.Info().Logf("received cancellation response: %#v", cancel)
75+
c.logger.Info().With(log.Fields{
76+
"file_id": log.String(cancel.FileID),
77+
"shard_key": log.String(cancel.ShardKey),
78+
"successful": log.Bool(cancel.Successful),
79+
}).Log("received cancellation response")
7680

7781
fileID := strings.TrimSuffix(cancel.FileID, ".ach")
7882

0 commit comments

Comments
 (0)