Logge nach stderr

This commit is contained in:
Gonne 2022-09-27 17:49:26 +02:00
parent bc49cfb809
commit 58eb848f20

View file

@ -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 {