Skip to content

Commit 379acb8

Browse files
authored
feat: change the logging condition for parsing internal message (#1243)
* remove useless logging message in parsing internal message
1 parent 244215b commit 379acb8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lens/util/repo.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ func ParseVmMessageParams(params []byte, paramsCodec uint64, method abi.MethodNu
5050
if err != nil {
5151
return "", "", err
5252
}
53-
err = fmt.Errorf("unknown method %d with codec %d for actorCode %s name %s", method, paramsCodec, actCode, builtin.ActorNameByCode(actCode))
54-
log.Warnw("parsing vm message params", "error", err)
5553
return string(paramj), builtin.ActorNameByCode(actCode), nil
5654
}
5755
// If the codec is 0, the parameters/return value are "empty".
@@ -76,8 +74,6 @@ func ParseVmMessageReturn(ret []byte, retCodec uint64, method abi.MethodNum, act
7674
if err != nil {
7775
return "", "", err
7876
}
79-
err = fmt.Errorf("unknown method %d with codec %d for actorCode %s name %s", method, retCodec, actCode, builtin.ActorNameByCode(actCode))
80-
log.Warnw("parsing vm message return", "error", err)
8177
return string(retJ), builtin.ActorNameByCode(actCode), nil
8278
}
8379
// If the codec is 0, the parameters/return value are "empty".
@@ -102,8 +98,6 @@ func ParseParams(params []byte, method abi.MethodNum, actCode cid.Cid) (_ string
10298
if err != nil {
10399
return "", "", err
104100
}
105-
err = fmt.Errorf("unknown method %d for actorCode %s name %s", method, actCode, builtin.ActorNameByCode(actCode))
106-
log.Warnw("parsing vm message params", "error", err)
107101
return string(paramj), method.String(), nil
108102
}
109103

0 commit comments

Comments
 (0)