Fix part_id field in logs

This commit is contained in:
Matthew Penner 2020-12-27 13:02:50 -07:00
parent de4d2f4724
commit b26db99ee7

View File

@ -135,11 +135,11 @@ func (s *S3Backup) generateRemoteRequest(rc io.ReadCloser) error {
// Attempt to upload the part.
if _, err := handlePart(part, partSize); err != nil {
l.WithField("part_id", part).WithError(err).Warn("failed to upload part")
l.WithField("part_id", i+1).WithError(err).Warn("failed to upload part")
return err
}
l.WithField("part_id", part).Info("successfully uploaded backup part")
l.WithField("part_id", i+1).Info("successfully uploaded backup part")
}
l.WithField("parts", partCount).Info("backup has been successfully uploaded")