Skip to content

Commit

Permalink
Added debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JarcauCristian committed Dec 31, 2023
1 parent 6d71608 commit 6444131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ func (minioInstance *MinIO) uploadFile(reader io.Reader, tags map[string]string,
bucketName = "dataspace"
}

fmt.Printf("Bucket Name: %s\n", bucketName)

object, err := minioInstance.clients[targetSite].PutObject(
context.Background(),
bucketName,
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ func main() {
}

boolTemporary, _ := strconv.ParseBool(temporary)
fmt.Println(boolTemporary)

result, err := minio.uploadFile(reader, mapTags, float64(fileSize), fileName, contentType, boolTemporary)
fmt.Println(result)
Expand Down

0 comments on commit 6444131

Please sign in to comment.