diff --git a/router.go b/router.go index f2cf53b0..3a8cb4e6 100644 --- a/router.go +++ b/router.go @@ -461,7 +461,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) file := staticDir + r.URL.Path[len(prefix):] finfo, err := os.Stat(file) if err != nil { - Warn(err) + if RunMode == "dev" { + Warn(err) + } http.NotFound(w, r) return }