Skip to content

Conversation

@ResuBaka
Copy link
Contributor

@ResuBaka ResuBaka commented Jul 6, 2025

Description of Changes

Currently with the function maybe_log_error to log errors we hide the real source line where the error happened. So to still have the same logic but with more accurate source line, I moved it to a macro to have the same abstraction for logging.

API and ABI breaking changes

Expected complexity level and risk

1

Testing

  • I have tested it my application and it now show the better source line of the log message

Copy link
Contributor

@gefjon gefjon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems eminently reasonable. My standards for comments are higher for macros than functions, so I've suggested one.

ResuBaka and others added 2 commits August 6, 2025 20:00
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Signed-off-by: ResuBaka <ResuBaka@users.noreply.github.com>
@bfops bfops added this pull request to the merge queue Aug 7, 2025
Merged via the queue into clockworklabs:master with commit 1a5a03d Aug 7, 2025
35 of 40 checks passed
@ResuBaka ResuBaka deleted the sdk-show-better-src-line-in-log branch August 7, 2025 17:45
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.

3 participants