无用文件清除

This commit is contained in:
suguo.yao 2022-08-13 22:16:09 +08:00
parent bff14dcc82
commit 1310a49824
2 changed files with 3 additions and 6 deletions

View File

@ -26,6 +26,9 @@ func Post(endpoint string, postBody string, authorization string) string {
url := baseURL + endpoint
var jsonStr = []byte(postBody)
req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr))
if err != nil {
return err.Error()
}
req.Header.Set("Authorization", "Bearer "+authorization)
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}

View File

@ -1,6 +0,0 @@
package exceptionless
func createLog(source string, message string, level string, geo string, referenceID string, date string, value uint) {
// event := BuildEvent("log", message, source, nil, nil, nil, nil, nil, nil)
// fmt.Println(event)
}