Skip to content

Commit

Permalink
add copy debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
wayblink committed Nov 7, 2023
1 parent 60bed57 commit dafb1f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/storage/minio_chunk_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ func (mcm *MinioChunkManager) Copy(ctx context.Context, fromBucketName string, t
dstObjectKey := strings.Replace(objectkey, fromPath, toPath, 1)
dst := minio.CopyDestOptions{Bucket: toBucketName, Object: dstObjectKey}

log.Debug("copyObject error",
zap.String("srcObjectKey", objectkey),
zap.String("dstObjectKey", dstObjectKey))
_, err = mcm.Client.CopyObject(ctx, dst, src)
if err != nil {
log.Error("copyObject error",
Expand Down

0 comments on commit dafb1f2

Please sign in to comment.