Commit fb57c617 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove chatty ErrorPage log message

This message is not very useful and it looks alarming because it
contains the word 'error'.
parent 8ca069af
...@@ -3,7 +3,6 @@ package staticpages ...@@ -3,7 +3,6 @@ package staticpages
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"log"
"net/http" "net/http"
"path/filepath" "path/filepath"
...@@ -45,7 +44,6 @@ func (s *errorPageResponseWriter) WriteHeader(status int) { ...@@ -45,7 +44,6 @@ func (s *errorPageResponseWriter) WriteHeader(status int) {
if data, err := ioutil.ReadFile(errorPageFile); err == nil { if data, err := ioutil.ReadFile(errorPageFile); err == nil {
s.hijacked = true s.hijacked = true
log.Printf("ErrorPage: serving predefined error page: %d", s.status)
helper.SetNoCacheHeaders(s.rw.Header()) helper.SetNoCacheHeaders(s.rw.Header())
s.rw.Header().Set("Content-Type", "text/html; charset=utf-8") s.rw.Header().Set("Content-Type", "text/html; charset=utf-8")
s.rw.WriteHeader(s.status) 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