From f4d5d4d2d53390a163c612e3388ca6b3d5f34961 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Wed, 18 Sep 2024 15:30:38 +1000 Subject: [PATCH] fix: fix `mdLogger` `IsDebug()` --- 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 0f085abd7e24..0868dd07fd44 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))