refactor: logger

This commit is contained in:
debugtalk
2021-12-22 19:36:53 +08:00
parent a845b58ff5
commit 2c0772ce30
15 changed files with 48 additions and 62 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ var boomCmd = &cobra.Command{
$ hrp boom examples/ # run testcases in specified folder`,
Args: cobra.MinimumNArgs(1),
PreRun: func(cmd *cobra.Command, args []string) {
hrp.SetLogger("WARN", logJSON) // disable info logs for load testing
setLogLevel("WARN") // disable info logs for load testing
},
Run: func(cmd *cobra.Command, args []string) {
var paths []hrp.ITestCase