Netty: Missing log placeholder for "-Dio.netty.allocator.useCacheForAllThreads" (io.netty.buffer.PooledByteBufAllocator)

Created on 23 Jan 2017  路  6Comments  路  Source: netty/netty

netty start log SHOULD output: -Dio.netty.allocator.useCacheForAllThreads true/false

BUT now start log output: -Dio.netty.allocator.useCacheForAllThreads, missing actual value

start any netty server or client with LOG Level : DEBUG

2017-01-23 7 48 12

netty-all-4.1.7.Final

JDK: java version "1.8.0_102"

OS: Linux XXX 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Now code is:

logger.debug("-Dio.netty.allocator.useCacheForAllThreads", DEFAULT_USE_CACHE_FOR_ALL_THREADS);
Would PooledByteBufAllocator LOG code be better to code like this?

logger.debug("-Dio.netty.allocator.useCacheForAllThreads: {}", DEFAULT_USE_CACHE_FOR_ALL_THREADS);

defect

Most helpful comment

In Elasticsearch we use a logger checker to ensure that this never happens; we fail the build if the placeholders do not match the arguments.

All 6 comments

@isdom yes... Want to open a PR to fix it ?

In Elasticsearch we use a logger checker to ensure that this never happens; we fail the build if the placeholders do not match the arguments.

@normanmaurer I fell asleep... next time I will try open a PR to fix simple issue.

@isdom you can still do if you like :) We love contributions 馃憤

thanks @normanmaurer , let me try...

Was this page helpful?
0 / 5 - 0 ratings