From 50b670ceab6c8fee126f9c411cc77d62b5150c2e Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 8 Apr 2019 13:20:43 +0200 Subject: [PATCH] ethapi: reformat log message --- internal/ethapi/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 8a9788b8cc..ccd918be22 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -698,7 +698,7 @@ func DoCall(ctx context.Context, b Backend, args CallArgs, blockNr rpc.BlockNumb gas = uint64(*args.Gas) } if globalGasCap != nil && globalGasCap.Uint64() < gas { - log.Warn("Applying cap on gas, caller requested amount above limit", "cap", globalGasCap, "attempted", gas) + log.Warn("Caller gas above allowance, capping", "requested", gas, "cap", globalGasCap) gas = globalGasCap.Uint64() } gasPrice := new(big.Int).SetUint64(defaultGasPrice) @@ -778,7 +778,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args CallArgs, blockNr rpc.Bl hi = block.GasLimit() } if gasCap != nil && hi > gasCap.Uint64() { - log.Warn("Applying cap on gas, caller requested amount above limit", "cap", gasCap, "attempted", hi) + log.Warn("Caller gas above allowance, capping", "requested", hi, "cap", gasCap) hi = gasCap.Uint64() } cap = hi