Merge pull request #2730 from swordqiu/hotfix/qj-s3cli-enable-debug-trace

fix: s3cli enable debug trace
This commit is contained in:
yunion-ci-robot
2019-09-03 17:36:14 +08:00
committed by GitHub
@@ -16,6 +16,7 @@ package objectstore
import (
"net/url"
"os"
"time"
"yunion.io/x/jsonutils"
@@ -85,6 +86,10 @@ func NewObjectStoreClientAndFetch(providerId string, providerName string, endpoi
client.client = cli
client.SetVirtualObject(&client)
if isDebug {
cli.TraceOn(os.Stderr)
}
if doFetch {
err = client.FetchBuckets()
if err != nil {