Skip to content

Commit

Permalink
log only errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagleft committed Nov 1, 2022
1 parent 73f600d commit 68f5b61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ func (l *logData) useError(err error) error {
return err
}

func (l *logData) useResponse(response []byte) {
/*func (l *logData) useResponse(response []byte) {
l.Response = response
l.setElapsedTime()
}
}*/

func (l *logData) getMessage() string {
status := "success"
Expand Down
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (c *UtopiaClient) apiQuery2JSON(
return nil, l.useError(fmt.Errorf("failed to read response body: %w", err))
}

l.useResponse(body)
//l.useResponse(body)
return body, nil
}

Expand Down

0 comments on commit 68f5b61

Please sign in to comment.