mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-30 06:50:55 +02:00
remove duplicate error logging.
This commit is contained in:
parent
b411675108
commit
316533dab0
5 changed files with 70 additions and 168 deletions
|
@ -32,15 +32,10 @@ func (h *MessageHandlerCtx) boradcastStatus(session types.Session) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
if err := session.Send(
|
||||
return session.Send(
|
||||
message.BroadcastStatus{
|
||||
Event: event.BORADCAST_STATUS,
|
||||
IsActive: h.capture.BroadcastEnabled(),
|
||||
URL: h.capture.BroadcastUrl(),
|
||||
}); err != nil {
|
||||
h.logger.Warn().Err(err).Msgf("sending event %s has failed", event.BORADCAST_STATUS)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue