From 3badf7f61aaeaa9ef3e0ff7f6adab1c7584894ce Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Mon, 8 Jan 2024 06:27:44 +0000 Subject: [PATCH] improve error log on tpd monitor --- pkg/tpd-monitor/api/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tpd-monitor/api/api.go b/pkg/tpd-monitor/api/api.go index 55d0321c..d03f5684 100644 --- a/pkg/tpd-monitor/api/api.go +++ b/pkg/tpd-monitor/api/api.go @@ -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.dmsgURL+"/deregister", "tp discovery") + err := api.deregisterRequest(tps, api.tpdURL+"/transports/deregister", "tp discovery") if err != nil { api.logger.Warn(err) return @@ -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