Logge nach stderr
This commit is contained in:
parent
bc49cfb809
commit
58eb848f20
1 changed files with 0 additions and 7 deletions
7
main.go
7
main.go
|
@ -5,7 +5,6 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"log/syslog"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"officeHours/config"
|
"officeHours/config"
|
||||||
"officeHours/controllers"
|
"officeHours/controllers"
|
||||||
|
@ -16,11 +15,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
logwriter, e := syslog.New(syslog.LOG_ERR, "office hours")
|
|
||||||
if e == nil {
|
|
||||||
log.SetOutput(logwriter)
|
|
||||||
}
|
|
||||||
|
|
||||||
configFile := flag.String(
|
configFile := flag.String(
|
||||||
"config",
|
"config",
|
||||||
"config/config.json",
|
"config/config.json",
|
||||||
|
@ -30,7 +24,6 @@ func main() {
|
||||||
flag.Usage()
|
flag.Usage()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
var conf config.Config
|
var conf config.Config
|
||||||
err := config.ReadConfigFile(*configFile, &conf)
|
err := config.ReadConfigFile(*configFile, &conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue