From c227053c3b3e6a278d3d89c8bc0f270c20f6e690 Mon Sep 17 00:00:00 2001 From: szh Date: Mon, 26 Aug 2019 14:54:45 +0800 Subject: [PATCH] Fix log format in HashedWheelTimer (#9507) Motivation: log message did not correctly use `{}` Modification: replace `%d` by `{}` Result: The log is correct. --- common/src/main/java/io/netty/util/HashedWheelTimer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/io/netty/util/HashedWheelTimer.java b/common/src/main/java/io/netty/util/HashedWheelTimer.java index 07ca9790fa..14ce2cac49 100644 --- a/common/src/main/java/io/netty/util/HashedWheelTimer.java +++ b/common/src/main/java/io/netty/util/HashedWheelTimer.java @@ -267,8 +267,8 @@ public class HashedWheelTimer implements Timer { if (duration < MILLISECOND_NANOS) { if (logger.isWarnEnabled()) { - logger.warn("Configured tickDuration %d smaller then %d, using 1ms.", - tickDuration, MILLISECOND_NANOS); + logger.warn("Configured tickDuration {} smaller then {}, using 1ms.", + tickDuration, MILLISECOND_NANOS); } this.tickDuration = MILLISECOND_NANOS; } else {