X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=go%2Fr3-netstatus%2Fmain.go;h=d5b3e2fcfc8b00b382aafc7edc62a12b52ebf5dd;hb=fa43684a042825be410260f547e092be3b432317;hp=0a4b0c9c986b17d5bb1b221773fcc469356463e2;hpb=52e539857287337cd45591c4a1a0023600bcbb92;p=svn42.git diff --git a/go/r3-netstatus/main.go b/go/r3-netstatus/main.go index 0a4b0c9..d5b3e2f 100644 --- a/go/r3-netstatus/main.go +++ b/go/r3-netstatus/main.go @@ -9,7 +9,7 @@ import ( "time" "fmt" //~ "./brain" - r3events "svn.spreadspace.org/realraum/go.svn/r3-eventbroker_zmq/r3events" + r3events "svn.spreadspace.org/realraum/go.svn/r3events" ) type SpaceState struct { @@ -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) }