Switch from zerolog to go.arsenm.dev/logger

This commit is contained in:
2023-01-04 15:06:05 -08:00
parent 81840d411d
commit 520c23b75b
13 changed files with 75 additions and 69 deletions

View File

@@ -6,9 +6,9 @@ import (
"time"
"github.com/cheggaaa/pb/v3"
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"
"go.arsenm.dev/itd/api"
"go.arsenm.dev/logger/log"
)
func fwUpgrade(c *cli.Context) error {

View File

@@ -8,9 +8,9 @@ import (
"time"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"
"go.arsenm.dev/itd/api"
"go.arsenm.dev/logger/log"
)
var client *api.Client
@@ -296,7 +296,7 @@ func main() {
err := app.RunContext(ctx, os.Args)
if err != nil {
log.Fatal().Err(err).Msg("Error while running app")
log.Fatal("Error while running app").Err(err).Send()
}
}