Fix log format in HashedWheelTimer (#9507)

Motivation:

log message did not correctly use `{}`

Modification:

replace `%d` by `{}`

Result:

The log is correct.
This commit is contained in:
szh 2019-08-26 14:54:45 +08:00 committed by Norman Maurer
parent 05dd1f05d5
commit c227053c3b

View File

@ -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 {