File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments