logging verändert

This commit is contained in:
xoy 2023-01-28 22:30:07 +01:00
parent ba8dc01863
commit 4688bc4df3
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
func httpHandleFunc(urlPath string, filepath string, contentType string) {
logger(readHttpYML() + "/" + urlPath + " - " + filepath + " <" + contentType + ">")
http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) {
logger(r.Method + " - request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">")
logger(r.Method + " <--> request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">")
w.Header().Add("Content-Type", contentType)
@ -26,7 +26,7 @@ func httpHandleFuncWithPOST(urlPath string, filepath string, contentType string)
errorPanic(err)
}
logger(r.Method + " - request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">")
logger(r.Method + " <--> request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">")
w.Header().Add("Content-Type", contentType)