mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix: s3cli enable debug trace
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user