🔊 dashboard: 默认输出服务故障上报日志

This commit is contained in:
naiba
2021-08-27 21:04:37 +08:00
parent ff15dfbbb8
commit d7ea114068
6 changed files with 17 additions and 24 deletions

View File

@@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"log"
"net/http"
"net/url"
"strings"
@@ -102,11 +101,6 @@ func (n *Notification) Send(message string) error {
err = fmt.Errorf("%d %s", resp.StatusCode, resp.Status)
}
// defer resp.Body.Close()
// body, _ := ioutil.ReadAll(resp.Body)
log.Printf("%s 通知:%s %s %+v\n", n.Name, message, reqBody, err)
return err
}