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

View File

@@ -1,8 +1,9 @@
package code
import (
"fmt"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
)
// general: [0, 2)
@@ -167,6 +168,6 @@ func GetErrorCode(err error) (errCode int) {
errCode = GeneralFail
}
log.Warn().Int("code", errCode).Msg("hrp exit")
fmt.Printf("hrp exit %d\n", errCode)
return
}