feat(backend): removed debug logs in http methods
This commit is contained in:
parent
33132e2d66
commit
e22845049d
1 changed files with 0 additions and 3 deletions
|
|
@ -29,7 +29,6 @@ func (e *Router) readBody(w http.ResponseWriter, r *http.Request, limit int64) (
|
|||
|
||||
// Check if body is gzipped and decompress it
|
||||
if r.Header.Get("Content-Encoding") == "gzip" {
|
||||
s := time.Now()
|
||||
reader, err := gzip.NewReader(body)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't create gzip reader: %s", err)
|
||||
|
|
@ -41,8 +40,6 @@ func (e *Router) readBody(w http.ResponseWriter, r *http.Request, limit int64) (
|
|||
if err := reader.Close(); err != nil {
|
||||
log.Printf("can't close gzip reader: %s", err)
|
||||
}
|
||||
// Debug log
|
||||
log.Printf("request body was gzipped, decompressed in %s", time.Since(s))
|
||||
} else {
|
||||
bodyBytes, err = io.ReadAll(body)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue