Browse Source

in progress

0x4a52466c696e74 2 months ago
parent
commit
e06d5fd2b1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      rest_http/rest.go

+ 3 - 1
rest_http/rest.go

@@ -47,6 +47,7 @@ func responseError(w http.ResponseWriter, err rest.IErrorArgs, code int) {
 
 // handle
 func (s *Rest) handle(w http.ResponseWriter, r *http.Request) {
+	log.Println("HANDLE START...")
 	// установка заголовков ответа
 	for k, v := range s.responseHeaders {
 		w.Header().Set(k, v)
@@ -153,7 +154,8 @@ func (s *Rest) handle(w http.ResponseWriter, r *http.Request) {
 			data.LogPretty()
 		}
 	}
-
+	log.Println("HANDLE MIDDLE...")
+	defer log.Println("HANDLE FINISH...")
 	// get command
 
 	//command, check := s.commands.GetCommand(r.URL.Path)