refactor: comment out logging for request duration in ServeHTTP method

This commit is contained in:
2025-01-21 20:03:11 -06:00
parent 5682c1e9c8
commit 86754b21aa

View File

@@ -135,10 +135,10 @@ func (sc *SteamCache) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return return
} }
tstart := time.Now() // tstart := time.Now()
defer func() { // defer func() {
log.Printf("%s %s %s took %s", r.Method, r.URL.String(), w.Header().Get("X-LanCache-Status"), time.Since(tstart)) // 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.mu.Lock()
sc.dirty = true sc.dirty = true