forked from boyska/circolog
tiny reformatting
This commit is contained in:
parent
86bdeed4a2
commit
7704c5ac70
1 changed files with 1 additions and 2 deletions
|
@ -35,6 +35,7 @@ func main() {
|
||||||
|
|
||||||
hub := circolog.NewHub(*bufsize)
|
hub := circolog.NewHub(*bufsize)
|
||||||
handler := syslog.NewChannelHandler(hub.LogMessages)
|
handler := syslog.NewChannelHandler(hub.LogMessages)
|
||||||
|
go hub.Run()
|
||||||
|
|
||||||
server := syslog.NewServer()
|
server := syslog.NewServer()
|
||||||
server.SetFormat(syslog.RFC5424)
|
server.SetFormat(syslog.RFC5424)
|
||||||
|
@ -57,7 +58,6 @@ func main() {
|
||||||
fmt.Fprintln(os.Stderr, "argh", err)
|
fmt.Fprintln(os.Stderr, "argh", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
go hub.Run()
|
|
||||||
|
|
||||||
setupHTTP(hub)
|
setupHTTP(hub)
|
||||||
httpServer := http.Server{Handler: nil}
|
httpServer := http.Server{Handler: nil}
|
||||||
|
@ -94,7 +94,6 @@ func main() {
|
||||||
fmt.Fprintln(os.Stderr, "Error closing http server:", err)
|
fmt.Fprintln(os.Stderr, "Error closing http server:", err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
default:
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue