Skip to content

Commit

Permalink
Fixing log statements to make tests happy
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Sidelinger <gate@ilive4code.net>
  • Loading branch information
gregsidelinger committed Nov 22, 2019
1 parent 3247b45 commit 25c781e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/replication/adapter/dtr/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (a *adapter) PrepareForPush(resources []*model.Resource) error {

dtrNamespaces, err := a.clientDTRAPI.getNamespaces()
if err != nil {
log.Error("Failed to lookup namespaces from DTR: %v", err)
log.Errorf("Failed to lookup namespaces from DTR: %v", err)
return err
}

Expand All @@ -216,7 +216,7 @@ func (a *adapter) PrepareForPush(resources []*model.Resource) error {

repositories, err := a.clientDTRAPI.getRepositories()
if err != nil {
log.Error("Failed to lookup repositories from DTR: %v", err)
log.Errorf("Failed to lookup repositories from DTR: %v", err)
return err
}

Expand Down
2 changes: 1 addition & 1 deletion src/replication/adapter/dtr/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (c *Client) getAndIteratePagination(endpoint string, v interface{}) error {

res := reflect.New(elemType)
if err = json.Unmarshal(data, res.Interface()); err != nil {
log.Error("Failed to parse json response: %v", data)
log.Errorf("Failed to parse json response: %v", data)
return err
}
resources = reflect.AppendSlice(resources, reflect.Indirect(res))
Expand Down

0 comments on commit 25c781e

Please sign in to comment.