diff --git a/src/modules/agent/report/report.go b/src/modules/agent/report/report.go index 587a0827..49f2aced 100644 --- a/src/modules/agent/report/report.go +++ b/src/modules/agent/report/report.go @@ -122,6 +122,8 @@ func report() error { for _, i := range rand.Perm(len(servers)) { url := fmt.Sprintf("http://%s/v1/ams-ce/hosts/register", servers[i]) + logger.Debugf("report: %+v", form) + var body errRes err := httplib.Post(url).JSONBodyQuiet(form).Header("X-Srv-Token", config.Config.Report.Token).SetTimeout(time.Second * 5).ToJSON(&body) if err != nil {