mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
more verbose debug
This commit is contained in:
parent
3b2648bd5e
commit
d651d9b427
@ -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 New Issue
Block a user