mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 01:19:02 +01:00
Do not print log level on CLI (#2638)
if it's not in debug log level closes https://github.com/woodpecker-ci/woodpecker/issues/1764
This commit is contained in:
@@ -41,6 +41,7 @@ func newApp() *cli.App {
|
||||
app.Usage = "command line utility"
|
||||
app.EnableBashCompletion = true
|
||||
app.Flags = common.GlobalFlags
|
||||
app.Before = common.SetupGlobalLogger
|
||||
app.Commands = []*cli.Command{
|
||||
pipeline.Command,
|
||||
log.Command,
|
||||
@@ -56,9 +57,5 @@ func newApp() *cli.App {
|
||||
cron.Command,
|
||||
}
|
||||
|
||||
for _, command := range app.Commands {
|
||||
command.Before = common.SetupGlobalLogger
|
||||
}
|
||||
|
||||
return app
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user