Skip to content
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

Merged

Conversation

saulbaro
Copy link
Contributor

@saulbaro saulbaro commented Mar 3, 2021

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:

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.
@swift-server-bot
Copy link

Can one of the admins verify this patch?

8 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@saulbaro saulbaro marked this pull request as ready for review March 3, 2021 05:06
@ktoso
Copy link
Member

ktoso commented Mar 3, 2021

@swift-server-bot test this please

Copy link
Member

@ktoso ktoso left a 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?

@saulbaro
Copy link
Contributor Author

saulbaro commented Mar 3, 2021

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 🤞

@ktoso ktoso merged commit 5d66f7b into apple:main Mar 3, 2021
@ktoso
Copy link
Member

ktoso commented Mar 4, 2021

@seanfoltz
Copy link

Hi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function parameter dropped in trace
4 participants