update hrp plugin (#1668)

* change: upgrade go mod zerolog

* change: relocate ocr_test

* refactor: init logger

* change: hrp exit log

* change: update logs

* change: upgrade funplugin to 0.5.2

* change: update change log
This commit is contained in:
debugtalk
2023-08-11 15:34:49 +08:00
committed by GitHub
parent 0332e8302c
commit ee04fb5702
22 changed files with 113 additions and 144 deletions
+4 -2
View File
@@ -4,6 +4,7 @@ import (
"strings"
"time"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"golang.org/x/net/context"
@@ -26,9 +27,10 @@ var boomCmd = &cobra.Command{
PreRun: func(cmd *cobra.Command, args []string) {
boomer.SetUlimit(10240) // ulimit -n 10240
if !strings.EqualFold(logLevel, "DEBUG") {
logLevel = "WARN" // disable info logs for load testing
// disable info logs for load testing
log.Info().Msg("Set global log level to WARN for load testing")
zerolog.SetGlobalLevel(zerolog.WarnLevel)
}
setLogLevel(logLevel)
},
RunE: func(cmd *cobra.Command, args []string) (err error) {
startTime := time.Now()