Skip to content

Commit 12f74de

Browse files
committed
wip: 🔕 temporary commit
1 parent 7cde4da commit 12f74de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/cli/app.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@ func NewApp(appName string) *cli.Command { //nolint:funlen
6060
return &cli.Command{
6161
Usage: appName,
6262
Suggest: true,
63-
Before: func(ctx context.Context, c *cli.Command) error {
63+
Before: func(ctx context.Context, c *cli.Command) (context.Context, error) {
6464
var (
6565
logLevel, _ = logger.ParseLevel(c.String(logLevelFlag.Name)) // error ignored because the flag validates itself
6666
logFormat, _ = logger.ParseFormat(c.String(logFormatFlag.Name)) // --//--
6767
)
6868

6969
configured, err := logger.New(logLevel, logFormat) // create a new logger instance
7070
if err != nil {
71-
return err
71+
return ctx, err
7272
}
7373

7474
*log = *configured // swap the "default" logger with customized
7575

76-
return nil
76+
return ctx, nil
7777
},
7878
Commands: []*cli.Command{
7979
serve.NewCommand(log),

0 commit comments

Comments
 (0)