Skip to content

Commit

Permalink
Merge pull request ethereum#89 from maticnetwork/arpit/mat-2425
Browse files Browse the repository at this point in the history
Make few warn logs to debug (mat-2425)
  • Loading branch information
jdkanani authored Oct 20, 2020
2 parents 93e2ac2 + a05ded7 commit adf77d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ func (args *CallArgs) ToMessage(globalGasCap uint64) types.Message {
gas = uint64(*args.Gas)
}
if globalGasCap != 0 && globalGasCap < gas {
log.Warn("Caller gas above allowance, capping", "requested", gas, "cap", globalGasCap)
log.Debug("Caller gas above allowance, capping", "requested", gas, "cap", globalGasCap)
gas = globalGasCap
}
gasPrice := new(big.Int)
Expand Down Expand Up @@ -997,7 +997,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args CallArgs, blockNrOrHash
}
// Recap the highest gas allowance with specified gascap.
if gasCap != 0 && hi > gasCap {
log.Warn("Caller gas above allowance, capping", "requested", hi, "cap", gasCap)
log.Debug("Caller gas above allowance, capping", "requested", hi, "cap", gasCap)
hi = gasCap
}
cap = hi
Expand Down

0 comments on commit adf77d2

Please sign in to comment.