Skip to content

feat!: remove debug logging webxdc integration - #8872

Merged
link2xt merged 1 commit into
mainfrom
link2xt/remove-debug-logging-xdc
Nov 3, 2026
Merged

link2xt merged 1 commit into
mainfrom
link2xt/remove-debug-logging-xdc

Conversation

@link2xt

@link2xt link2xt commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

"Debug logging" is a hidden experimental feature that sends all events as webxdc updates to a webxdc named "debug_logging.xdc" and posted to "Saved messages".

AFAIK it was not used by anyone recently, but the main reason to remove it now is that the way it is implemented it only works if events are emitted through the Context. I want to pass Events (sender side of the event channel) to some tasks so they don't hold a reference to the Context (in #8867; EDIT: this is not actually possible, still need Context to store DNS cache and write to connection_history) and don't prevent the database from closing, but if I do it now then events logged from these tasks will not be passed to debug logging XDC.

@link2xt
link2xt marked this pull request as ready for review October 29, 2026 15:35
Comment thread src/receive_imf.rs
}

// Maybe set logging xdc and add gossip topics for webxdcs.
for (part, msg_id) in mime_parser.parts.iter().zip(&created_db_entries) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
for (part, msg_id) in mime_parser.parts.iter().zip(&created_db_entries) {
// Add gossip topics for webxdcs.
for (part, msg_id) in mime_parser.parts.iter().zip(&created_db_entries) {

@r10s

r10s commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

yeah, tho around since more than three years (introduced at #3958, after related tries and discussions at #3871, #3296, #3272 and #808), it was never really in use

"Debug logging" is a hidden experimental feature
that sends all events as webxdc updates to a webxdc
named "debug_logging.xdc" and posted to "Saved messages".

AFAIK it was not used by anyone recently,
but the main reason to remove it now is that the way it is implemented
it only works if events are emitted through the `Context`.
I want to pass `Events` (sender side of the event channel) to some tasks
so they don't hold a reference to the `Context`
and don't prevent the database from closing,
but if I do it now then events logged from these tasks
will not be passed to debug logging XDC.
@link2xt
link2xt force-pushed the link2xt/remove-debug-logging-xdc branch from 7eda1d4 to c789157 Compare November 3, 2026 14:08
@link2xt
link2xt merged commit b6ba845 into main Nov 3, 2026
50 of 51 checks passed
@link2xt
link2xt deleted the link2xt/remove-debug-logging-xdc branch November 3, 2026 14:43
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