X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=go%2Fr3-netstatus%2Fmain.go;h=d5b3e2fcfc8b00b382aafc7edc62a12b52ebf5dd;hp=0af7ef85823c5c122bf1bfdb0065adcc38d4de58;hb=fa43684a042825be410260f547e092be3b432317;hpb=23d4ac6d4f23cff2fcf69ab5277125e39ab9328a diff --git a/go/r3-netstatus/main.go b/go/r3-netstatus/main.go index 0af7ef8..d5b3e2f 100644 --- a/go/r3-netstatus/main.go +++ b/go/r3-netstatus/main.go @@ -81,7 +81,7 @@ func EventToXMPP(ps *pubsub.PubSub, xmpp_presence_events_chan_ chan <- interface xmpp_presence_events_chan_ <- r3xmppbot.XMPPStatusEvent{r3xmppbot.ShowNotAvailabe, "Nobody is here"} for eventinterface := range(events) { - Debug_.Println("event2xmpp", eventinterface) + Debug_.Printf("event2xmpp: %T %+v", eventinterface, eventinterface) switch event := eventinterface.(type) { case r3events.PresenceUpdate: present = event.Present @@ -119,6 +119,7 @@ func EventToXMPP(ps *pubsub.PubSub, xmpp_presence_events_chan_ chan <- interface func ParseZMQr3Event(lines [][]byte, ps *pubsub.PubSub) { evnt, pubsubcat, err := r3events.UnmarshalByteByte2Event(lines) + Debug_.Printf("ParseZMQr3Event: %s %s %s", evnt, pubsubcat, err) if err != nil { return } ps.Pub(evnt, pubsubcat) }