closes #1461, enhance log message of oss driver
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
This commit is contained in:
parent
bf991fec01
commit
dbba9cf299
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
logrus.Infof("methodString: %s, expiresTime: %v", methodString, expiresTime)
|
||||||
testURL := d.Bucket.SignedURLWithMethod(methodString, d.ossPath(path), expiresTime, nil, nil)
|
signedURL := d.Bucket.SignedURLWithMethod(methodString, d.ossPath(path), expiresTime, nil, nil)
|
||||||
logrus.Infof("testURL: %s", testURL)
|
logrus.Infof("signed URL: %s", signedURL)
|
||||||
return testURL, nil
|
return signedURL, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driver) ossPath(path string) string {
|
func (d *driver) ossPath(path string) string {
|
||||||
|
|
Loading…
Reference in a new issue