fix: fixed logging system

This commit is contained in:
evilsocket 2018-01-08 08:14:23 +01:00
commit 9fc31b0b2c
2 changed files with 8 additions and 12 deletions

View file

@ -101,11 +101,7 @@ func (p *EventPool) Add(tag string, data interface{}) {
e := NewEvent(tag, data)
p.events = append([]Event{e}, p.events...)
select {
case p.NewEvents <- e:
break
default:
}
go func() { p.NewEvents <- e }()
}
func (p *EventPool) Log(level int, format string, args ...interface{}) {