Sfoglia il codice sorgente

[dav] logging of http methods in macron router

cgars 7 anni fa
parent
commit
ce735bc3d5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      vendor/gopkg.in/macaron.v1/router.go

+ 2 - 0
vendor/gopkg.in/macaron.v1/router.go

@@ -18,6 +18,7 @@ import (
 	"net/http"
 	"strings"
 	"sync"
+	log "gopkg.in/clog.v1"
 )
 
 var (
@@ -149,6 +150,7 @@ func (r *Router) handle(method, pattern string, handle Handle) *Route {
 	methods := make(map[string]bool)
 	if method == "*" {
 		for m := range _HTTP_METHODS {
+			log.Trace("Register Methods:%s", m)
 			methods[m] = true
 		}
 	} else {