Commit cf5aa1be authored by Matt Holt's avatar Matt Holt

Merge pull request #323 from tpng/patch-1

use log instead of fmt to obey the -log flag
parents a1481bc2 c35b2016
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