mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
change: hrp exit log
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user