Skip to content

Commit

Permalink
Print stack tarce
Browse files Browse the repository at this point in the history
  • Loading branch information
lumos42 committed May 14, 2024
1 parent 5fd81c0 commit 242f32e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion precompile/contracts/bibliophile/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package bibliophile

import (
"math/big"
"runtime/debug"

hu "github.com/ava-labs/subnet-evm/plugin/evm/orderbook/hubbleutils"
"github.com/ava-labs/subnet-evm/precompile/contract"
Expand Down Expand Up @@ -47,7 +48,7 @@ func getUnderlyingPrice_(stateDB contract.StateDB, underlying common.Address) *b
if aggregator.Big().Sign() != 0 {
// custom oracle is configured for this market
price := getCustomOraclePrice(stateDB, aggregator)
log.Info("custom-oracle-price", "underlying", underlying, "price", price)
log.Info("custom-oracle-price", "underlying", underlying, "price", price, "stack", string(debug.Stack()))
return price
}

Expand Down

0 comments on commit 242f32e

Please sign in to comment.