Skip to content

Libplugin: add log trace#8113

Merged
ShahanaFarooqui merged 4 commits intoElementsProject:masterfrom
Lagrang3:libplugin-logtrace
May 2, 2025
Merged

Libplugin: add log trace#8113
ShahanaFarooqui merged 4 commits intoElementsProject:masterfrom
Lagrang3:libplugin-logtrace

Conversation

@Lagrang3
Copy link
Collaborator

@Lagrang3 Lagrang3 commented Feb 24, 2025

Add the ability to log "trace" events with plugins.
Before this PR a LOG_TRACE from a plugin was being logged as **BROKEN** because "trace" was missing from
libplugin.

I've also added trace logs to every json rpc call on askrene and to the payment modifiers steps in renepay.

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Ack ea290e7

@rustyrussell rustyrussell added this to the v25.05 milestone Mar 4, 2025
A log event LOG_TRACE submitted by a plugin was being logged as
**BROKEN** by lightningd before this commit.

Changelog-Fixed: plugins can now log events under the LOG_TRACE flag.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Previously it was flagged as LOG_DBG, but produces very verbose log
files.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
This could be helpful for debugging the interaction of renepay/xpay with
askrene.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
@ShahanaFarooqui ShahanaFarooqui merged commit 47babbf into ElementsProject:master May 2, 2025
29 of 40 checks passed
@Lagrang3 Lagrang3 deleted the libplugin-logtrace branch May 23, 2025 06:59
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