events: remove debug log
This commit is contained in:
parent
4ba5fe2866
commit
71e56c7da6
|
@ -3,8 +3,6 @@ package events
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/apex/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Listener chan Event
|
type Listener chan Event
|
||||||
|
@ -38,7 +36,6 @@ func (b *Bus) Off(listener Listener, topics ...string) {
|
||||||
for _, topic := range topics {
|
for _, topic := range topics {
|
||||||
ok := b.off(topic, listener)
|
ok := b.off(topic, listener)
|
||||||
if !closed && ok {
|
if !closed && ok {
|
||||||
log.Debug("closing event channel!")
|
|
||||||
close(listener)
|
close(listener)
|
||||||
closed = true
|
closed = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user