forked from Elara6331/infinitime
Add debug logging
This commit is contained in:
1
music.go
1
music.go
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user