feat(logs): Improved logging

This commit is contained in:
2025-08-06 11:15:57 +02:00
parent 15a37f3e8c
commit 09e7c36571
5 changed files with 73 additions and 9 deletions

View File

@@ -1,8 +1,7 @@
package main
import (
"log"
"github.com/charmbracelet/log"
"gitlab.com/gomidi/midi/v2"
"github.com/bendahl/uinput"
)
@@ -65,7 +64,7 @@ func (c Controller) update(msg midi.Message) {
for _, mapping := range c.mappings {
err := mapping.TriggerIfMatch(msg, c.virtGamepad)
if err != nil {
log.Printf("Error in Mapping \"%s\": %v\n", mapping.Comment(), err)
log.Errorf("Error in Mapping \"%s\": %v", mapping.Comment(), err)
}
}
}