[core] Adjust logging for channel meta updates to match other events

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-05-21 13:52:40 +02:00
parent 0e7af1cfc8
commit 7accdea9d9
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -412,7 +412,7 @@ func (t *twitchWatcher) triggerUpdate(channel string, title, category *string, o
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"channel": channel, "channel": channel,
"category": *category, "category": *category,
}).Debug("Twitch metadata changed") }).Info("Category updated")
go handleMessage(ircHdl.Client(), nil, eventTypeTwitchCategoryUpdate, plugins.FieldCollectionFromData(map[string]interface{}{ go handleMessage(ircHdl.Client(), nil, eventTypeTwitchCategoryUpdate, plugins.FieldCollectionFromData(map[string]interface{}{
"channel": "#" + channel, "channel": "#" + channel,
"category": *category, "category": *category,
@ -424,7 +424,7 @@ func (t *twitchWatcher) triggerUpdate(channel string, title, category *string, o
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"channel": channel, "channel": channel,
"title": *title, "title": *title,
}).Debug("Twitch metadata changed") }).Info("Title updated")
go handleMessage(ircHdl.Client(), nil, eventTypeTwitchTitleUpdate, plugins.FieldCollectionFromData(map[string]interface{}{ go handleMessage(ircHdl.Client(), nil, eventTypeTwitchTitleUpdate, plugins.FieldCollectionFromData(map[string]interface{}{
"channel": "#" + channel, "channel": "#" + channel,
"title": *title, "title": *title,
@ -436,7 +436,7 @@ func (t *twitchWatcher) triggerUpdate(channel string, title, category *string, o
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"channel": channel, "channel": channel,
"isLive": *online, "isLive": *online,
}).Debug("Twitch metadata changed") }).Info("Live-status updated")
evt := eventTypeTwitchStreamOnline evt := eventTypeTwitchStreamOnline
if !*online { if !*online {