diff options
Diffstat (limited to '')
-rw-r--r-- | http_server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/http_server.go b/http_server.go index 917d68c..5970cf7 100644 --- a/http_server.go +++ b/http_server.go @@ -6,11 +6,15 @@ import ( "net/http" "strconv" "strings" + + "go.lindenii.runxiyu.org/lindenii-common/clog" ) type http_router_t struct{} func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { + clog.Debug("Incoming HTTP: " + r.RemoteAddr + " " + r.Method + " " + r.RequestURI) + segments, _, err := parse_request_uri(r.RequestURI) if err != nil { http.Error(w, err.Error(), http.StatusBadRequest) |