Skip to content

Commit 2d000c5

Browse files
committed
try debug zerolog race condition rs/zerolog#555
1 parent b9cba9d commit 2d000c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/backup/download.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,12 @@ func (b *Backuper) downloadTableMetadata(ctx context.Context, backupName string,
406406
b.resumableState.AppendToState(localMetadataFile, written)
407407
}
408408
}
409-
log.Info().
410-
Str("operation", "download_metadata").
411-
Str("backup", backupName).
412-
Str("duration", utils.HumanizeDuration(time.Since(start))).
413-
Str("size", utils.FormatBytes(size)).
414-
Msg("done")
409+
log.Info().Fields(map[string]string{
410+
"operation": "download_metadata",
411+
"backup": backupName,
412+
"duration": utils.HumanizeDuration(time.Since(start)),
413+
"size": utils.FormatBytes(size),
414+
}).Msg("done")
415415
return &tableMetadata, size, nil
416416
}
417417

0 commit comments

Comments
 (0)