Fix a bug where the warning message is logged in wrong occasion.
This commit is contained in:
parent
b2d624a3ba
commit
9278b29ea4
@ -105,7 +105,7 @@ public abstract class AbstractNioBossPool<E extends Boss>
|
||||
}
|
||||
}
|
||||
|
||||
if (!warn) {
|
||||
if (warn) {
|
||||
logger.warn(
|
||||
"Failed to get all boss threads ready within " + INITIALIZATION_TIMEOUT + " second(s). " +
|
||||
"Make sure to specify the executor which has more threads than the requested bossCount. " +
|
||||
|
@ -106,7 +106,7 @@ public abstract class AbstractNioWorkerPool<E extends AbstractNioWorker>
|
||||
}
|
||||
}
|
||||
|
||||
if (!warn) {
|
||||
if (warn) {
|
||||
logger.warn(
|
||||
"Failed to get all worker threads ready within " + INITIALIZATION_TIMEOUT + " second(s). " +
|
||||
"Make sure to specify the executor which has more threads than the requested workerCount. " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user