Debuging response outputs
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 25s

This commit is contained in:
2025-06-09 12:46:14 -04:00
parent cb008f61e7
commit 21a928bf70
3 changed files with 5 additions and 3 deletions

View File

@ -242,6 +242,7 @@ func (c *Client) execute(requestUrl string, method string, params map[string]str
if err != nil {
c.logger.Error("error while getting body", "error", err.Error())
}
c.logger.Debug("parsed http request output", "data", string(resBytes))
if r, ok := c.parseResponse(resBytes); ok {
// c.logger.Debug("parsed http request output", "data", r.Data)
@ -251,7 +252,7 @@ func (c *Client) execute(requestUrl string, method string, params map[string]str
var sr ServiceRequest
err := json.Unmarshal(r.Data, &sr)
if err != nil {
c.logger.Error("error while parsing json", "request", "HTTP POLLING", "error", err.Error())
c.logger.Error("error while parsing json", "request", "remoteServiceStatus", "error", err.Error())
}
if pollingUrl != "" {