mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-16 09:29:45 -07:00
Add really really verbose log level
This commit is contained in:
+6
-1
@@ -45,11 +45,16 @@ func makeHandler(handler ResponseHandler) httprouter.Handle {
|
||||
duration,
|
||||
)
|
||||
} else if glog.V(2) {
|
||||
reqString := r.URL.Path
|
||||
if glog.V(3) {
|
||||
reqString = r.URL.RequestURI() + " for " + r.RemoteAddr
|
||||
}
|
||||
|
||||
glog.Infof(
|
||||
"Completed (%v:%s) %s in %v",
|
||||
httpCode,
|
||||
http.StatusText(httpCode),
|
||||
r.URL.Path,
|
||||
reqString,
|
||||
duration,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user