Skip to content

Improve network graph update logging #2498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

arik-so
Copy link
Contributor

@arik-so arik-so commented Aug 15, 2023

No description provided.

@arik-so arik-so force-pushed the arik/2023-08-gossip-logging branch 2 times, most recently from da34c49 to 24c97f2 Compare August 15, 2023 06:47
@codecov-commenter
Copy link

codecov-commenter commented Aug 15, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.53% 🎉

Comparison is base (a24626b) 90.40% compared to head (49daa85) 90.94%.
Report is 15 commits behind head on main.

❗ Current head 49daa85 differs from pull request most recent head d162c40. Consider uploading reports for the commit d162c40 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2498      +/-   ##
==========================================
+ Coverage   90.40%   90.94%   +0.53%     
==========================================
  Files         106      106              
  Lines       56328    60767    +4439     
  Branches    56328    60767    +4439     
==========================================
+ Hits        50926    55264    +4338     
- Misses       5402     5503     +101     
Files Changed Coverage Δ
lightning/src/routing/gossip.rs 89.99% <100.00%> (+0.26%) ⬆️

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arik-so arik-so marked this pull request as ready for review August 15, 2023 17:04
@arik-so arik-so force-pushed the arik/2023-08-gossip-logging branch 2 times, most recently from 2243ba3 to 49daa85 Compare August 15, 2023 21:48
@@ -1878,6 +1887,8 @@ impl<L: Deref> NetworkGraph<L> where L::Target: Logger {
}
}

log_gossip!(self.logger, "Updating channel {} in direction {}", msg.short_channel_id, msg.flags & 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we at least include the timestamp in this log? Maybe also the disable/enable flag? Anything else that's important to know?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah thought you were referring to the other log entrie wrt missing timestamps. No problem, will do. Sorry

@arik-so arik-so force-pushed the arik/2023-08-gossip-logging branch from 49daa85 to d162c40 Compare August 17, 2023 18:14
@TheBlueMatt TheBlueMatt merged commit 2b898a3 into lightningdevkit:main Aug 21, 2023
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.

4 participants