refactor: comment out logging for request duration in ServeHTTP method
All checks were successful
Release / Build versioned release (push) Successful in 16s
All checks were successful
Release / Build versioned release (push) Successful in 16s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user