Switch from zerolog to go.arsenm.dev/logger

This commit is contained in:
2023-01-04 15:00:15 -08:00
parent 8c5eca51f9
commit 492242bd54
8 changed files with 81 additions and 85 deletions

View File

@@ -2,6 +2,7 @@ package infinitime
import (
"errors"
"github.com/muka/go-bluetooth/bluez/profile/gatt"
)
@@ -119,7 +120,7 @@ const (
)
func (n *NavigationService) SetFlag(flag NavFlag) error {
log.Debug().Str("func", "SetFlag").Msg("Sending flag")
log.Debug("Sending flag").Str("func", "SetFlag").Send()
if err := n.dev.checkStatus(n.flagsChar, NavFlagsChar); err != nil {
return err
}
@@ -127,7 +128,7 @@ func (n *NavigationService) SetFlag(flag NavFlag) error {
}
func (n *NavigationService) SetNarrative(narrative string) error {
log.Debug().Str("func", "SetNarrative").Msg("Sending narrative")
log.Debug("Sending narrative").Str("func", "SetNarrative").Send()
if err := n.dev.checkStatus(n.narrativeChar, NavNarrativeChar); err != nil {
return err
}
@@ -135,7 +136,7 @@ func (n *NavigationService) SetNarrative(narrative string) error {
}
func (n *NavigationService) SetManDist(manDist string) error {
log.Debug().Str("func", "SetNarrative").Msg("Sending maneuver distance")
log.Debug("Sending maneuver distance").Str("func", "SetNarrative").Send()
if err := n.dev.checkStatus(n.mandistChar, NavManDistChar); err != nil {
return err
}
@@ -143,7 +144,7 @@ func (n *NavigationService) SetManDist(manDist string) error {
}
func (n *NavigationService) SetProgress(progress uint8) error {
log.Debug().Str("func", "SetNarrative").Msg("Sending progress")
log.Debug("Sending progress").Str("func", "SetNarrative").Send()
if err := n.dev.checkStatus(n.progressChar, NavProgressChar); err != nil {
return err
}