로그 추가

This commit is contained in:
2023-06-26 23:24:49 +09:00
parent 9590de2e00
commit d17c53c79c
3 changed files with 13 additions and 6 deletions

View File

@ -121,8 +121,10 @@ func (h *houstonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
var operation string
if r.Method == "POST" {
operation = r.FormValue("operation")
logger.Println("api called :", r.Form)
} else {
operation = r.URL.Query().Get("operation")
logger.Println("api called :", r.URL.Query())
}
if len(operation) == 0 {
@ -138,10 +140,6 @@ func (h *houstonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
if r.PostForm == nil {
r.ParseMultipartForm(defaultMaxMemory)
}
args := []reflect.Value{
reflect.ValueOf(h),
reflect.ValueOf(w),