-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix function being dropped on source-less trace #185
Fix function being dropped on source-less trace #185
Conversation
Motivation: When using the recently re-introduced source-less version of trace, the function parameter that reaches the underlying LogHandler is wrong. Modifications: Pass the function parameter to trace with source parameter. Result: With these changes, the function parameter that reaches the underlying LogHandler has the correct value.
Can one of the admins verify this patch? |
8 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
@swift-server-bot test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch! Thanks for spotting this and the nice report and fix.
I skimmed the other functions, the remaining ones seem fine...
We could cut a quick 1.4.2 if you want, WDYT?
Hey @ktoso, thanks to you for reviewing this so quickly :) Cutting a new release would be great. We've avoided the issue on our end for now by pinning the previous release, but we'd love to revert that back. Regarding the other functions, this issue was flagged by our unit tests, and it was the only failing one, so I am confident that it is the only one with this issue 🤞 |
FYI 1.4.2 released 👍 https://github.com/apple/swift-log/releases/tag/1.4.2 |
Hi |
Motivation:
When using the recently re-introduced source-less version of trace, the function parameter that reaches the underlying LogHandler is wrong.
Modifications:
Pass the function parameter to trace with source parameter.
Result: