mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-27 02:40:30 +00: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue