Skip to content

Commit 4fa2bec

Browse files
committed
Merge branch 'hotfix/0.2.7'
2 parents 513d882 + 9615933 commit 4fa2bec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
/*
6-
Package router 0.2.6 provides fast HTTP request router.
6+
Package router 0.2.7 provides fast HTTP request router.
77
88
The router matches incoming requests by the request method and the path.
99
If a handle is registered for this path and method, the router delegates the
@@ -183,7 +183,7 @@ func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
183183
}
184184
}()
185185
if r.Logger {
186-
log.Println(req.Method, req.URL.Path)
186+
log.Println(req.RemoteAddr, req.Method, req.URL.Path)
187187
}
188188
if _, ok := r.handlers[req.Method]; ok {
189189
if handle, params, ok := r.handlers[req.Method].get(req.URL.Path); ok {

0 commit comments

Comments
 (0)