From ff6b02cc397b638a1652db1a748541b453073cac Mon Sep 17 00:00:00 2001 From: Julius Andrikonis Date: Wed, 27 Oct 2021 16:05:52 +0300 Subject: [PATCH] Revert "Recovered panic should be logged as error" This reverts commit 287a1ca07131662a9b247e1a1cfd7a1c959946d0. --- packages/vm/viewcontext/viewcontext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vm/viewcontext/viewcontext.go b/packages/vm/viewcontext/viewcontext.go index ba7eec6e20..8ed259d447 100644 --- a/packages/vm/viewcontext/viewcontext.go +++ b/packages/vm/viewcontext/viewcontext.go @@ -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) }()