X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=go%2Fr3-netstatus%2Fmain.go;h=563f94ddd13f31be64816d581f6e9a0bc4508c73;hb=2d2b56de27b644964adcd5b8f90c03e558714547;hp=d5b3e2fcfc8b00b382aafc7edc62a12b52ebf5dd;hpb=fa43684a042825be410260f547e092be3b432317;p=svn42.git diff --git a/go/r3-netstatus/main.go b/go/r3-netstatus/main.go index d5b3e2f..563f94d 100644 --- a/go/r3-netstatus/main.go +++ b/go/r3-netstatus/main.go @@ -40,7 +40,7 @@ func init() { flag.StringVar(&r3eventssub_port_, "eventsubport", "tcp://wuzzler.realraum.at:4244", "zmq address to subscribe r3events") flag.StringVar(&brain_connect_addr_, "brainconnect", "tcp://wuzzler.realraum.at:4245", "address to ask about most recent stored events") flag.BoolVar(&enable_syslog_, "syslog", false, "enable logging to syslog") - flag.BoolVar(&enable_debug_, "debug", false, "enable debug logging") + flag.BoolVar(&enable_debug_, "debug", false, "enable debug output") flag.Parse() } @@ -64,7 +64,7 @@ func EventToXMPP(ps *pubsub.PubSub, xmpp_presence_events_chan_ chan <- interface defer func() { if x := recover(); x != nil { - Debug_.Printf("handleIncomingXMPPStanzas: run time panic: %v", x) + Syslog_.Printf("handleIncomingXMPPStanzas: run time panic: %v", x) ps.Unsub(events, "presence","door","buttons","updateinterval") close(xmpp_presence_events_chan_) }