From 6f99536fcd707897b4eb8cc9cfb0f480f70fb675 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 27 Jan 2026 13:44:44 +0800 Subject: [PATCH] cmd/utils: fix default value for slow block logging --- cmd/utils/flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 98e3c6171c..91448c520c 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -692,8 +692,8 @@ var ( } LogSlowBlockFlag = &cli.DurationFlag{ Name: "debug.logslowblock", - Usage: "Block execution time threshold beyond which detailed statistics will be logged (0 logs all blocks)", - Value: 0, + Usage: "Block execution time threshold beyond which detailed statistics will be logged (0 logs all blocks, negative means disable)", + Value: ethconfig.Defaults.SlowBlockThreshold, Category: flags.LoggingCategory, }