Commit 7d96cfa4 authored by Matthew Holt's avatar Matthew Holt

Turn off log timestamp for parse errors (easier to read)

parent c7af6725
......@@ -3,6 +3,7 @@
package config
import (
"log"
"net"
"os"
......@@ -77,6 +78,10 @@ func Load(filename string) ([]Config, error) {
}
defer file.Close()
// turn off timestamp for parsing
flags := log.Flags()
log.SetFlags(0)
p, err := newParser(file)
if err != nil {
return nil, err
......@@ -91,6 +96,9 @@ func Load(filename string) ([]Config, error) {
cfgs[i].ConfigFile = filename
}
// restore logging settings
log.SetFlags(flags)
return cfgs, nil
}
......
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