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"
|
||||
"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…
Reference in a new issue