@ -49,10 +49,10 @@ func main() {
api.Init(mux)
// start web server
if !*debug {
err = http.Serve(listener, mux)
} else {
if *debug {
err = http.Serve(listener, debugHandler(mux))
}
if err != nil {
log.Fatalf("failed to create http server or server errored: %s", err)