Logge nach stderr

main
Gonne 8 months ago
parent bc49cfb809
commit 58eb848f20

@ -5,7 +5,6 @@ import (
"flag"
"fmt"
"log"
"log/syslog"
"net/http"
"officeHours/config"
"officeHours/controllers"
@ -16,11 +15,6 @@ import (
)
func main() {
logwriter, e := syslog.New(syslog.LOG_ERR, "office hours")
if e == nil {
log.SetOutput(logwriter)
}
configFile := flag.String(
"config",
"config/config.json",
@ -30,7 +24,6 @@ func main() {
flag.Usage()
os.Exit(1)
}
var conf config.Config
err := config.ReadConfigFile(*configFile, &conf)
if err != nil {

Loading…
Cancel
Save