add debug log
This commit is contained in:
parent
7a185b5054
commit
ebb95a8292
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue