refactor: comment out logging for request duration in ServeHTTP method
This commit is contained in:
@@ -135,10 +135,10 @@ func (sc *SteamCache) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
tstart := time.Now()
|
||||
defer func() {
|
||||
log.Printf("%s %s %s took %s", r.Method, r.URL.String(), w.Header().Get("X-LanCache-Status"), time.Since(tstart))
|
||||
}()
|
||||
// tstart := time.Now()
|
||||
// defer func() {
|
||||
// log.Printf("%s %s %s took %s", r.Method, r.URL.String(), w.Header().Get("X-LanCache-Status"), time.Since(tstart))
|
||||
// }()
|
||||
|
||||
sc.mu.Lock()
|
||||
sc.dirty = true
|
||||
|
||||
Reference in New Issue
Block a user