Skip to content

Commit

Permalink
debug GetSnapshotStatus response
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris committed Jun 7, 2023
1 parent 44912d5 commit f5bf3ab
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (c *Client) GetSnapshotStatus(s []string) ([]map[string]interface{}, error)
if resp.IsError() {
return nil, fmt.Errorf("request failed: %v", resp.String())
}

log.Debug("status response", resp)
var r map[string][]interface{}
if err := json.NewDecoder(resp.Body).Decode(&r); err != nil {
return nil, err
Expand Down
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ require (
github.com/elastic/go-elasticsearch/v7 v7.10.0
github.com/go-logr/logr v1.2.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/common v0.32.1
github.com/prometheus/client_golang v1.12.1
github.com/prometheus/common v0.37.0
github.com/prometheus/procfs v0.7.3 // indirect
github.com/prometheus/promu v0.14.0 // indirect
github.com/robfig/cron/v3 v3.0.1
github.com/sirupsen/logrus v1.8.1
golang.org/x/sys v0.0.0-20211020174200-9d6173849985 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)
Loading

0 comments on commit f5bf3ab

Please sign in to comment.