Sfoglia il codice sorgente

remove debug logs

tags/v0.9.0
jimzhan 9 anni fa
parent
commit
31de03abff
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  1. +0
    -6
      middleware/static.go

+ 0
- 6
middleware/static.go Vedi File

@@ -4,8 +4,6 @@ import (
"net/http"
"path"
"strings"

"github.com/Sirupsen/logrus"
)

// Static serves as file server for static assets,
@@ -69,10 +67,6 @@ func Static(dir string) func(http.Handler) http.Handler {
}

http.ServeContent(w, r, filename, stat.ModTime(), file)
var header = w.Header()
for key, values := range header {
logrus.Infof("%s: %v", key, values)
}
})
}
}

Loading…
Annulla
Salva