Commit b1e3c5ae authored by Nick Thomas's avatar Nick Thomas

Merge branch 'error-page-chatty-log' into 'master'

Remove chatty ErrorPage log message

Closes #132

See merge request !167
parents 8ca069af fb57c617
......@@ -3,7 +3,6 @@ package staticpages
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"path/filepath"
......@@ -45,7 +44,6 @@ func (s *errorPageResponseWriter) WriteHeader(status int) {
if data, err := ioutil.ReadFile(errorPageFile); err == nil {
s.hijacked = true
log.Printf("ErrorPage: serving predefined error page: %d", s.status)
helper.SetNoCacheHeaders(s.rw.Header())
s.rw.Header().Set("Content-Type", "text/html; charset=utf-8")
s.rw.WriteHeader(s.status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment