forked from Elara6331/itd
		
	Switch from zerolog to go.arsenm.dev/logger
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
| @@ -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() | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user