mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
🔊 dashboard: 默认输出服务故障上报日志
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user