From ad6a0735d22d6a0172c12acffc508b32049d66f7 Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Tue, 16 Feb 2016 11:17:09 +0800 Subject: [PATCH 1/2] closes #1461, enhance log message of oss driver Signed-off-by: liuchang0812 --- docs/storage/driver/oss/oss.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/storage/driver/oss/oss.go b/docs/storage/driver/oss/oss.go index 67215bc2..03afdbe1 100644 --- a/docs/storage/driver/oss/oss.go +++ b/docs/storage/driver/oss/oss.go @@ -744,9 +744,9 @@ func (d *driver) URLFor(ctx context.Context, path string, options map[string]int } } logrus.Infof("methodString: %s, expiresTime: %v", methodString, expiresTime) - testURL := d.Bucket.SignedURLWithMethod(methodString, d.ossPath(path), expiresTime, nil, nil) - logrus.Infof("testURL: %s", testURL) - return testURL, nil + signedURL := d.Bucket.SignedURLWithMethod(methodString, d.ossPath(path), expiresTime, nil, nil) + logrus.Infof("signed URL: %s", signedURL) + return signedURL, nil } func (d *driver) ossPath(path string) string { From 7ca24a7f5a27949ff407fe9c8dea636606a118b4 Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Tue, 16 Feb 2016 11:42:09 +0800 Subject: [PATCH 2/2] fix gofmt Signed-off-by: liuchang0812 --- docs/storage/driver/oss/oss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/storage/driver/oss/oss.go b/docs/storage/driver/oss/oss.go index 03afdbe1..1ec04525 100644 --- a/docs/storage/driver/oss/oss.go +++ b/docs/storage/driver/oss/oss.go @@ -745,7 +745,7 @@ func (d *driver) URLFor(ctx context.Context, path string, options map[string]int } logrus.Infof("methodString: %s, expiresTime: %v", methodString, expiresTime) signedURL := d.Bucket.SignedURLWithMethod(methodString, d.ossPath(path), expiresTime, nil, nil) - logrus.Infof("signed URL: %s", signedURL) + logrus.Infof("signed URL: %s", signedURL) return signedURL, nil }