From a05ded7975beffec71bd9b73f84b6590983e0ed4 Mon Sep 17 00:00:00 2001
From: Arpit Temani <temaniarpit27@gmail.com>
Date: Mon, 12 Oct 2020 17:43:24 +0530
Subject: [PATCH] chg: caller gas allowance logs from warn to debug

---
 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 f329e2636..4d60c1a8c 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -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)
@@ -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
-- 
GitLab