From 3f8f898418852d988e0a28f09faeec75cc0f25a7 Mon Sep 17 00:00:00 2001 From: namhq1989 Date: Sun, 8 Jan 2023 18:52:56 +0700 Subject: [PATCH] add get presigned url logs --- presigned_url.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/presigned_url.go b/presigned_url.go index 7c1b021..4837712 100644 --- a/presigned_url.go +++ b/presigned_url.go @@ -20,7 +20,8 @@ func (c Client) GetPresignedURL(ctx context.Context, bucket, object string, expi // get presignedURL, err := c.client.PresignedGetObject(context.Background(), bucket, object, expiry, reqParams) if err != nil { - fmt.Println("[minio.GetPresignedURL] error:", err.Error()) + fmt.Printf("[minio.GetPresignedURL][%s] get object %s error: %s \n", bucket, object, err.Error()) + fmt.Printf("params %v \n", reqParams) return "" }