Do not log explicit no unsafe, fixes helper method. (#8111)
Motivation: Users should not see a scary log message when Netty is initialized if Netty configuration explicitly disables unsafe. The log message that produces this warning was previously guarded but by recent refactoring a bug was introduced inside the guard helper method. Modifications: This commit brings back the guard against the scary log message if unsafe is explicitly disabled. Result: No log message is produced when unsafe is unavailable because Netty was told to not look for it. Relates https://github.com/netty/netty/pull/5624, https://github.com/netty/netty/pull/6696
This commit is contained in:
parent
cda4f88ca2
commit
0920738932
@ -368,7 +368,7 @@ final class PlatformDependent0 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static boolean isExplicitNoUnsafe() {
|
static boolean isExplicitNoUnsafe() {
|
||||||
return EXPLICIT_NO_UNSAFE_CAUSE == null;
|
return EXPLICIT_NO_UNSAFE_CAUSE != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Throwable explicitNoUnsafeCause0() {
|
private static Throwable explicitNoUnsafeCause0() {
|
||||||
|
Loading…
Reference in New Issue
Block a user