Commit c35b2016 authored by Benny Ng's avatar Benny Ng

use log instead of fmt to obey the -log flag

parent a1481bc2
package setup package setup
import ( import (
"fmt"
"io" "io"
"log" "log"
"os" "os"
...@@ -108,7 +107,7 @@ func errorsParse(c *Controller) (*errors.ErrorHandler, error) { ...@@ -108,7 +107,7 @@ func errorsParse(c *Controller) (*errors.ErrorHandler, error) {
where = filepath.Join(c.Root, where) where = filepath.Join(c.Root, where)
f, err := os.Open(where) f, err := os.Open(where)
if err != nil { if err != nil {
fmt.Println("Warning: Unable to open error page '" + where + "': " + err.Error()) log.Printf("[WARNING] Unable to open error page '%s': %v", where, err)
} }
f.Close() f.Close()
......
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