Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[nio-1.13] Make NIOAny log the contents of its storage when encountering fatal unwrapping errors. #879

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

MrMage
Copy link
Contributor

@MrMage MrMage commented Mar 6, 2019

Make NIOAny log the contents of its storage when encountering fatal unwrapping errors.

Motivation:

This should make debugging crashes easier, as knowing the contents of the badly-unwrapped NIOAny should make it more clear where exactly it could have been written. Personally I'd prefer this to never cause a fatal error, but I assume that would need more discussion.

Modifications:

See above.

Result:

Fatal errors caused by unwrapping NIOAny will show the actual contents of the badly-unwrapped NIOAny object, not just its type.

… unwrapping errors.

Motivation:
This should make debugging crashes easier, as knowing the contents of the badly-unwrapped `NIOAny` should make it more clear where exactly it could have been written. Personally I'd prefer this to never cause a fatal error, but I assume that would need more discussion.
@swift-nio-bot
Copy link

Can one of the admins verify this patch?

2 similar comments
@swift-nio-bot
Copy link

Can one of the admins verify this patch?

@swift-nio-bot
Copy link

Can one of the admins verify this patch?

@Lukasa Lukasa requested review from Lukasa and weissi March 6, 2019 18:00
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Mar 6, 2019
@Lukasa Lukasa added this to the 1.13.2 milestone Mar 6, 2019
@Lukasa
Copy link
Contributor

Lukasa commented Mar 6, 2019

@swift-nio-bot test this please

@weissi
Copy link
Member

weissi commented Mar 6, 2019

@swift-nio-ci add to whitelist

@weissi
Copy link
Member

weissi commented Mar 6, 2019

@swift-nio-bot test this please

@Lukasa
Copy link
Contributor

Lukasa commented Mar 7, 2019

Spurious failure, let’s test again.

@Lukasa
Copy link
Contributor

Lukasa commented Mar 7, 2019

@swift-nio-bot test this please

@weissi weissi merged commit 3bd0fc5 into apple:nio-1.13 Mar 7, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants