Skip to content

Do not log on explicit no unsafe again#6696

Closed
jasontedor wants to merge 1 commit intonetty:4.1from
jasontedor:explicit-no-unsafe-regression
Closed

Do not log on explicit no unsafe again#6696
jasontedor wants to merge 1 commit intonetty:4.1from
jasontedor:explicit-no-unsafe-regression

Conversation

@jasontedor
Copy link
Copy Markdown
Contributor

@jasontedor jasontedor commented May 3, 2017

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 the guard was lost.

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 #5624, relates #6568

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 the guard was
lost.

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.
@normanmaurer
Copy link
Copy Markdown
Member

@jasontedor LGTM... Thanks a lot again. Will merge once the CI finishes

@normanmaurer normanmaurer self-assigned this May 3, 2017
@jasontedor
Copy link
Copy Markdown
Contributor Author

Thanks @normanmaurer!

@normanmaurer
Copy link
Copy Markdown
Member

normanmaurer commented May 3, 2017

Cherry-picked into 4.1 (9a0fd3a) and 4.0 (bf2ab60)

@normanmaurer normanmaurer self-requested a review May 3, 2017 20:32
@normanmaurer normanmaurer added this to the 4.0.47.Final milestone May 3, 2017
@jasontedor jasontedor deleted the explicit-no-unsafe-regression branch May 3, 2017 22:37
@jasontedor
Copy link
Copy Markdown
Contributor Author

Thanks for merging @normanmaurer.

seut added a commit to seut/netty that referenced this pull request Jul 9, 2018
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 netty#5624, netty#6696
normanmaurer pushed a commit that referenced this pull request Jul 9, 2018
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 #5624, #6696
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants