mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 18:21:06 +02:00
fix SetupConsoleLogger which is a noop (#1564)
When App.Before is called the options are not parsed yet, use Command.Before instead.
This commit is contained in:
parent
fbbfd61aac
commit
222ff11fd9
@ -65,7 +65,9 @@ func newApp() *cli.App {
|
||||
Out: os.Stderr,
|
||||
},
|
||||
)
|
||||
app.Before = common.SetupConsoleLogger
|
||||
for _, command := range app.Commands {
|
||||
command.Before = common.SetupConsoleLogger
|
||||
}
|
||||
|
||||
return app
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user