mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
change: PersistentPreRun log setting
This commit is contained in:
@@ -18,6 +18,12 @@ var RootCmd = &cobra.Command{
|
||||
License: Apache-2.0
|
||||
Github: https://github.com/httprunner/hrp
|
||||
Copyright 2021 debugtalk`,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
if !logJSON {
|
||||
hrp.SetLogPretty()
|
||||
}
|
||||
hrp.SetLogLevel(logLevel)
|
||||
},
|
||||
Version: hrp.VERSION,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user