better event string

This commit is contained in:
Radu Ioan Fericean
2012-05-01 14:46:04 +03:00
parent 265fc1039d
commit 43c73bf85e
2 changed files with 21 additions and 18 deletions

View File

@@ -25,13 +25,10 @@ import (
func TestConnect(t *testing.T) {
sm := &SessionManager{}
sm.Connect("localhost:8021")
sm.Connect("localhost:8021", "ClueCon")
for {
ev := sm.ReadNextEvent()
if name, err := ev.GetField("Event-Name"); err == nil {
log.Println(name)
} else {
log.Print("cannot get requested field!", err)
}
log.Print(ev.Fields["Event-Name"])
log.Print(ev)
}
}