mirror of
https://github.com/octoleo/restic.git
synced 2024-11-02 11:46:36 +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
|
||||
|
||||
if cfg.KeyID == "" || cfg.Secret == "" {
|
||||
debug.Log("iam")
|
||||
debug.Log("key/secret not found, trying to get them from IAM")
|
||||
creds := credentials.NewIAM("")
|
||||
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")
|
||||
}
|
||||
} else {
|
||||
debug.Log("key, secret")
|
||||
debug.Log("key/secret found")
|
||||
client, err = minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, !cfg.UseHTTP)
|
||||
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user