Skip to content

Commit

Permalink
feat: change the logging condition for parsing internal message (#1243)
Browse files Browse the repository at this point in the history
* remove useless logging message in parsing internal message
  • Loading branch information
Terryhung authored Jul 17, 2023
1 parent 244215b commit 379acb8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lens/util/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ func ParseVmMessageParams(params []byte, paramsCodec uint64, method abi.MethodNu
if err != nil {
return "", "", err
}
err = fmt.Errorf("unknown method %d with codec %d for actorCode %s name %s", method, paramsCodec, actCode, builtin.ActorNameByCode(actCode))
log.Warnw("parsing vm message params", "error", err)
return string(paramj), builtin.ActorNameByCode(actCode), nil
}
// If the codec is 0, the parameters/return value are "empty".
Expand All @@ -76,8 +74,6 @@ func ParseVmMessageReturn(ret []byte, retCodec uint64, method abi.MethodNum, act
if err != nil {
return "", "", err
}
err = fmt.Errorf("unknown method %d with codec %d for actorCode %s name %s", method, retCodec, actCode, builtin.ActorNameByCode(actCode))
log.Warnw("parsing vm message return", "error", err)
return string(retJ), builtin.ActorNameByCode(actCode), nil
}
// If the codec is 0, the parameters/return value are "empty".
Expand All @@ -102,8 +98,6 @@ func ParseParams(params []byte, method abi.MethodNum, actCode cid.Cid) (_ string
if err != nil {
return "", "", err
}
err = fmt.Errorf("unknown method %d for actorCode %s name %s", method, actCode, builtin.ActorNameByCode(actCode))
log.Warnw("parsing vm message params", "error", err)
return string(paramj), method.String(), nil
}

Expand Down

0 comments on commit 379acb8

Please sign in to comment.