Skip to content

Commit

Permalink
Merge pull request #40 from mrpalide/fix/improve-error-log-on-tpd-mon…
Browse files Browse the repository at this point in the history
…itor

improve error log on tpd monitor
  • Loading branch information
mrpalide authored Jan 8, 2024
2 parents 7519e90 + 61e6d5c commit d99c5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/tpd-monitor/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func getARData(url string) (map[string]map[string]bool, error) {
}

func (api *API) tpdDeregister(tps []string) {
err := api.deregisterRequest(tps, api.tpdURL+"/deregister", "tp discovery")
err := api.deregisterRequest(tps, api.tpdURL+"/transports/deregister", "tp discovery")
if err != nil {
api.logger.Warn(err)
return
Expand Down Expand Up @@ -331,7 +331,7 @@ func (api *API) deregisterRequest(keys []string, rawReqURL, service string) erro
}(res.Body)

if res.StatusCode != http.StatusOK {
return fmt.Errorf("Error deregister keys from %s : %s", service, err)
return fmt.Errorf("Error on deregister keys from %s : res.StatusCode %s", service, res.StatusCode)
}

return nil
Expand Down

0 comments on commit d99c5e9

Please sign in to comment.