Add debug logging

This commit is contained in:
2022-04-23 19:58:00 -07:00
parent 2f51bde597
commit 2def4b13ac
4 changed files with 57 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ func (mc MusicCtrl) WatchEvents() (<-chan MusicEvent, error) {
for event := range ch {
// If value changes
if event.Name == "Value" {
log.Debug().Bytes("value", event.Value.([]byte)).Msg("Received music event from watch")
// Send music event to channel
musicEventCh <- MusicEvent(event.Value.([]byte)[0])
}