Finihes Unit testing
This commit is contained in:
@@ -50,7 +50,12 @@ func (l *Logger) Wrap() func(chain.Handler) chain.Handler {
|
||||
uAgent = strings.Join(uAgentList, "; ")
|
||||
}
|
||||
|
||||
l.Printf("Requested %s on %s from %s (User-Agent: %s)", r.Method, r.URL.Path, r.RemoteAddr, uAgent)
|
||||
remote := r.RemoteAddr
|
||||
if len(remote) == 0 {
|
||||
remote = "<unknown>"
|
||||
}
|
||||
|
||||
l.Printf("Requested %s on %s from %s (User-Agent: %s)", r.Method, r.URL.Path, remote, uAgent)
|
||||
|
||||
//wrap the request with our own interface
|
||||
hh := WrapResponseWritter(h)
|
||||
|
||||
Reference in New Issue
Block a user