Switch from zerolog to go.arsenm.dev/logger in itctl

This commit is contained in:
2023-01-04 15:17:14 -08:00
parent e858c43b5e
commit 35701b1396
4 changed files with 3 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ func fwUpgrade(c *cli.Context) error {
err = resLoad(c.Context, []string{absRes})
if err != nil {
log.Error().Msg("Resource loading has returned an error. This can happen if your current version of InfiniTime doesn't support BLE FS. Try updating without resource loading, and then load them after using the `itctl res load` command.")
log.Error("Resource loading has returned an error. This can happen if your current version of InfiniTime doesn't support BLE FS. Try updating without resource loading, and then load them after using the `itctl res load` command.").Send()
return err
}
}

View File

@@ -7,16 +7,16 @@ import (
"syscall"
"time"
"github.com/rs/zerolog"
"github.com/urfave/cli/v2"
"go.arsenm.dev/itd/api"
"go.arsenm.dev/logger"
"go.arsenm.dev/logger/log"
)
var client *api.Client
func main() {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
log.Logger = logger.NewPretty(os.Stderr)
ctx := context.Background()
ctx, _ = signal.NotifyContext(