Skip to content

Commit

Permalink
Suppress unneccessary error logs.
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Kumar Mishra <ashish10677@gmail.com>
  • Loading branch information
ashish10677 committed Sep 8, 2022
1 parent f6f08f4 commit b4ee8b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dispute.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (*UtilsStruct) GetBountyIdFromEvents(client *ethclient.Client, blockNumber
for _, vLog := range logs {
data, unpackErr := abiUtils.Unpack(contractAbi, "Slashed", vLog.Data)
if unpackErr != nil {
log.Error(unpackErr)
log.Debug(unpackErr)
continue
}
topics := vLog.Topics
Expand Down
2 changes: 1 addition & 1 deletion cmd/reveal.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (*UtilsStruct) IndexRevealEventsOfCurrentEpoch(client *ethclient.Client, bl
for _, vLog := range logs {
data, unpackErr := abiUtils.Unpack(contractAbi, "Revealed", vLog.Data)
if unpackErr != nil {
log.Error(unpackErr)
log.Debug(unpackErr)
continue
}
if epoch == data[0].(uint32) {
Expand Down

0 comments on commit b4ee8b4

Please sign in to comment.