Skip to content

Commit

Permalink
Revert "Recovered panic should be logged as error"
Browse files Browse the repository at this point in the history
This reverts commit 287a1ca.
  • Loading branch information
Juliusan committed Oct 27, 2021
1 parent 573b937 commit ff6b02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vm/viewcontext/viewcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ func (v *Viewcontext) CallView(contractHname, epCode iscp.Hname, params dict.Dic
default:
err = xerrors.Errorf("viewcontext: panic in VM: %v", err1)
}
v.log.Errorf("CallView: %v", err)
v.log.Errorf(string(debug.Stack()))
v.log.Debugf("CallView: %v", err)
v.log.Debugf(string(debug.Stack()))
}()
ret, err = v.callView(contractHname, epCode, params)
}()
Expand Down

0 comments on commit ff6b02c

Please sign in to comment.