Skip to content

Fix module_path/line numbers in log facade logging#547

Merged
tnull merged 1 commit intolightningdevkit:mainfrom
tnull:2025-05-fix-log-facade-logging
May 27, 2025
Merged

Fix module_path/line numbers in log facade logging#547
tnull merged 1 commit intolightningdevkit:mainfrom
tnull:2025-05-fix-log-facade-logging

Conversation

@tnull
Copy link
Collaborator

@tnull tnull commented May 26, 2025

Previously, we'd reuse the log facade macros which would always log the line number in logger.rs, not at the line number given at the record.

Here, we rectify this by utilizing log's RecordBuilder to craft a record and directly giving it to the configured logger.

Previously, we'd reuse the `log` facade macros which would always log
the line number in `logger.rs`, not at the line number given at the
record.

Here, we rectify this by utilizing `log`'s `RecordBuilder` to craft a
record and directly giving it to the configured logger.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented May 26, 2025

I've assigned @jkczyz as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot ldk-reviews-bot requested a review from jkczyz May 26, 2025 14:02
@tnull tnull merged commit 477f8d9 into lightningdevkit:main May 27, 2025
13 of 15 checks passed
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