mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
[core] Adjust logging for channel meta updates to match other events
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0e7af1cfc8
commit
7accdea9d9
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue