forked from TrueCloudLab/restic
more verbose debug
This commit is contained in:
parent
3b2648bd5e
commit
d651d9b427
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ func open(cfg Config) (*Backend, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
if cfg.KeyID == "" || cfg.Secret == "" {
|
if cfg.KeyID == "" || cfg.Secret == "" {
|
||||||
debug.Log("iam")
|
debug.Log("key/secret not found, trying to get them from IAM")
|
||||||
creds := credentials.NewIAM("")
|
creds := credentials.NewIAM("")
|
||||||
client, err = minio.NewWithCredentials(cfg.Endpoint, creds, !cfg.UseHTTP, "")
|
client, err = minio.NewWithCredentials(cfg.Endpoint, creds, !cfg.UseHTTP, "")
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ func open(cfg Config) (*Backend, error) {
|
||||||
return nil, errors.Wrap(err, "minio.NewWithCredentials")
|
return nil, errors.Wrap(err, "minio.NewWithCredentials")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
debug.Log("key, secret")
|
debug.Log("key/secret found")
|
||||||
client, err = minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, !cfg.UseHTTP)
|
client, err = minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, !cfg.UseHTTP)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue