Print key instead of file path in snapshot metadata log message

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/8815/head
Brad Davidson 1 year ago committed by Brad Davidson
parent b23e70d519
commit 6d3a92a658

@ -178,7 +178,7 @@ func (s *S3) upload(ctx context.Context, snapshot string, extraMetadata *v1.Conf
if _, err := s.uploadSnapshotMetadata(ctx, metadataKey, metadata); err != nil {
logrus.Warnf("Failed to upload snapshot metadata to S3: %v", err)
} else {
logrus.Infof("Uploaded snapshot metadata s3://%s/%s", s.config.EtcdS3BucketName, metadata)
logrus.Infof("Uploaded snapshot metadata s3://%s/%s", s.config.EtcdS3BucketName, metadataKey)
}
return sf, err
}

Loading…
Cancel
Save