From dbba9cf299cedc464ad6e0cd13a439feed7e6f6e Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Tue, 16 Feb 2016 11:17:09 +0800 Subject: [PATCH] closes #1461, enhance log message of oss driver Signed-off-by: liuchang0812 --- registry/storage/driver/oss/oss.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/registry/storage/driver/oss/oss.go b/registry/storage/driver/oss/oss.go index 67215bc2..03afdbe1 100644 --- a/registry/storage/driver/oss/oss.go +++ b/registry/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 {