mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
fix: fixed logging system
This commit is contained in:
parent
e7687c658f
commit
9fc31b0b2c
2 changed files with 8 additions and 12 deletions
|
@ -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{}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue