新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit e67a5359 authored by gh lu's avatar gh lu

fix: update time judgement

--bug=0
parent ebb43f72
......@@ -35,6 +35,7 @@ type Conf struct {
LogLevel string
ContractEngineClient *ContractEngineClientConf
RuntimeClient *RuntimeClientConf
DisableSlowLog bool
}
type RuntimeClientConf struct {
......@@ -93,6 +94,11 @@ func initConfig() error {
config.RuntimeClient.RuntimeRPCProtocolType = TCP
config.RuntimeClient.RuntimeHost = os.Args[6]
config.RuntimeClient.RuntimePort = strconv.Itoa(port)
if len(os.Args) > 7 {
if config.DisableSlowLog, err = strconv.ParseBool(os.Args[7]); err != nil {
return err
}
}
return nil
}
......
......@@ -153,7 +153,7 @@ func (t *TxDuration) addSysCallDuration(duration *SysCallDuration) {
// EnterNextStep enter next duration tx step
func EnterNextStep(msg *protogo.DockerVMMessage, stepType protogo.StepType, log string) {
if len(msg.StepDurations) == 0 {
if config.DisableSlowLog {
return
}
if stepType != protogo.StepType_RUNTIME_PREPARE_TX_REQUEST {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment