提交 ebb95a82 编写于 作者: U Ulric Qin

add debug log

上级 7a185b50
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册