events: remove debug log

This commit is contained in:
Matthew Penner 2022-01-20 09:50:13 -07:00
parent 4ba5fe2866
commit 71e56c7da6
No known key found for this signature in database
GPG Key ID: 31311906AD4CF6D6

View File

@ -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
} }