mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Merge pull request #323 from tpng/patch-1
use log instead of fmt to obey the -log flag
This commit is contained in:
commit
cf5aa1bed1
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
package setup
|
package setup
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue