Skip to content

refactor: print debug logs for silent errors in handle_offer()#1734

Merged
KolbyML merged 2 commits into
ethereum:masterfrom
KolbyML:fix-hidden-logs
Mar 28, 2025
Merged

refactor: print debug logs for silent errors in handle_offer()#1734
KolbyML merged 2 commits into
ethereum:masterfrom
KolbyML:fix-hidden-logs

Conversation

@KolbyML
Copy link
Copy Markdown
Member

@KolbyML KolbyML commented Mar 27, 2025

What was wrong?

The Samba team has spent days trying to debug why there put_content implementation isn't working, Trin wasn't printing any logs so they had no way to tell why Trin was failing to accept their offer

How was it fixed?

If these functions return error's print them on the debug log

@KolbyML KolbyML self-assigned this Mar 27, 2025
Copy link
Copy Markdown
Collaborator

@morph-dev morph-dev left a comment

Choose a reason for hiding this comment

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

🚢

key, utp_processing,
)
.await {
debug!(%err, "Fallback FINDCONTENT task failed, after validating and storing content failed");
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.

nit: maybe add content key here as well?

)
.await;
.await {
debug!(%err, content_key = ?content_key, "Fallback FINDCONTENT task failed, after uTP transfer failed");
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
debug!(%err, content_key = ?content_key, "Fallback FINDCONTENT task failed, after uTP transfer failed");
debug!(%err, ?content_key, "Fallback FINDCONTENT task failed, after uTP transfer failed");

nit: I think this would work. Same at line 1164

@KolbyML KolbyML merged commit 6110f92 into ethereum:master Mar 28, 2025
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