From d226debce36e9a6c11316569b149c1cbf01c31b7 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:32:09 +1000 Subject: [PATCH] fix: fix `mdLogger` `IsDebug()` (#1045) --- eth/tracers/logger/logger.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth/tracers/logger/logger.go b/eth/tracers/logger/logger.go index 0f085abd7e..0868dd07fd 100644 --- a/eth/tracers/logger/logger.go +++ b/eth/tracers/logger/logger.go @@ -545,6 +545,8 @@ func (*mdLogger) CaptureTxStart(gasLimit uint64) {} func (*mdLogger) CaptureTxEnd(restGas uint64) {} +func (t *mdLogger) IsDebug() bool { return t.cfg.Debug } + // FormatLogs formats EVM returned structured logs for json output func FormatLogs(logs []StructLog) []types.StructLogRes { formatted := make([]types.StructLogRes, len(logs))