diff --git a/log.ini b/log.ini index 6b9858c..938dc11 100644 --- a/log.ini +++ b/log.ini @@ -1,5 +1,5 @@ dir=log match=warn -url=http://192.168.22.74:6801/upload_v2 +url=http://192.168.5.35:6801/upload_v2 key=测试 info=测试 \ No newline at end of file diff --git a/logs/warn.log b/logs/warn.log deleted file mode 100644 index cdf67df..0000000 --- a/logs/warn.log +++ /dev/null @@ -1,2 +0,0 @@ -{asdasd,asdasd} -asdasdasd.asdsad \ No newline at end of file diff --git a/up.go b/up.go index bc05640..7d647ed 100644 --- a/up.go +++ b/up.go @@ -3,7 +3,6 @@ package main import ( "bytes" "encoding/json" - "fmt" "io/ioutil" "net/http" ) @@ -25,10 +24,9 @@ func requestDingApi(url string, msg message) error { return err } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + _, err = ioutil.ReadAll(resp.Body) if err != nil { return err } - fmt.Println("body:%v", string(body)) return err }