fix: s3cli enable debug trace

This commit is contained in:
Qiu Jian
2019-09-03 17:07:21 +08:00
parent 0cd9ef05df
commit a0ec3b34dc
@@ -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 {