-
Notifications
You must be signed in to change notification settings - Fork 78
Initial definition for TSK_TRACE_ERRORS #3095
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
Conversation
fccc7ad
to
e2b9844
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3095 +/- ##
==========================================
- Coverage 89.95% 89.94% -0.02%
==========================================
Files 29 29
Lines 32627 32641 +14
Branches 5851 5851
==========================================
+ Hits 29351 29358 +7
- Misses 1862 1869 +7
Partials 1414 1414
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Seems like a solid idea to me, should be able to hit most of the changepoints with a regex! |
OK cool, I'll fill this out as I get a chance. |
Did you want this for 0.6.1? I'm happy to finish it up. If we did I guess we do a C API release too. |
Would be great if you could pick this up, thanks @benjeffery. I think the code changes are done, it's just a case of documenting what's going on in the developer docs and telling devs how to turn on the flag at compile time. |
@jeromekelleher I've added some detail to the docs and added some I've also had a good look for places that needed the function added and found none. |
That's great, thanks. I think we do need to document the actual setting of |
Ok added! Needs a squash, I'll do that if it all looks good. |
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.
LGTM! I can't approve as it's my PR. Squash away
fb7712e
to
56b3621
Compare
This is a proposal to address the discussion in #3094.
Essentially, we add a function-like macro
tsk_trace_error
, and everywhere we normally dowe instead do
We can then define
tsk_trace_error
to be a no-op for production code, and define a function which emits some error traces. For the changes I've made here, we get this on stderr:Implementation notes
I can push this through and document if folks like it.