Skip to content

Commit

Permalink
try debug zerolog race condition rs/zerolog#555
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Aug 13, 2023
1 parent b9cba9d commit 2d000c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/backup/download.go
Expand Up @@ -406,12 +406,12 @@ func (b *Backuper) downloadTableMetadata(ctx context.Context, backupName string,
b.resumableState.AppendToState(localMetadataFile, written)
}
}
log.Info().
Str("operation", "download_metadata").
Str("backup", backupName).
Str("duration", utils.HumanizeDuration(time.Since(start))).
Str("size", utils.FormatBytes(size)).
Msg("done")
log.Info().Fields(map[string]string{
"operation": "download_metadata",
"backup": backupName,
"duration": utils.HumanizeDuration(time.Since(start)),
"size": utils.FormatBytes(size),
}).Msg("done")
return &tableMetadata, size, nil
}

Expand Down

0 comments on commit 2d000c5

Please sign in to comment.