mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(irc): log only validated messages (#954)
* fix(irc): flip spam to trace * Update handler.go
This commit is contained in:
parent
b1eae6e980
commit
5a61b406b0
1 changed files with 2 additions and 2 deletions
|
@ -562,8 +562,6 @@ func (h *Handler) onMessage(msg ircmsg.Message) {
|
|||
// clean message
|
||||
cleanedMsg := h.cleanMessage(message)
|
||||
|
||||
h.log.Debug().Str("channel", channel).Str("nick", nick).Msg(cleanedMsg)
|
||||
|
||||
// publish to SSE stream
|
||||
h.publishSSEMsg(domain.IrcMessage{Channel: channel, Nick: nick, Message: cleanedMsg, Time: time.Now()})
|
||||
|
||||
|
@ -577,6 +575,8 @@ func (h *Handler) onMessage(msg ircmsg.Message) {
|
|||
return
|
||||
}
|
||||
|
||||
h.log.Debug().Str("channel", channel).Str("nick", nick).Msg(cleanedMsg)
|
||||
|
||||
if err := h.sendToAnnounceProcessor(channel, cleanedMsg); err != nil {
|
||||
h.log.Error().Stack().Err(err).Msgf("could not queue line: %v", cleanedMsg)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue