Skip to content

Downgrade log message "Channel Monitor sync is still in progress" from info to debug #2548

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
merged 1 commit into from
Sep 5, 2023

Conversation

JosephGoulden
Copy link
Contributor

I'm persisting ChannelMonitors asynchronously to a distributed database and returning ChannelMonitorUpdateStatus::InProgress until the data is committed. The update only takes a few milliseconds and in that time I can see two occurrences of the message "A Channel Monitor sync is still in progress, refusing to provide monitor events!" in the logs. It's being triggered by the async background processor calling process_pending_events on the chain monitor and channel manager.

Everything appears to be working as expected so it seems to me this log message can be downgraded to debug given it is normal behavior. It is not necessary to print it twice every time there is a channel update.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (e9d9711) 90.58% compared to head (25c0f48) 90.58%.

❗ 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    #2548   +/-   ##
=======================================
  Coverage   90.58%   90.58%           
=======================================
  Files         110      110           
  Lines       57526    57526           
  Branches    57526    57526           
=======================================
  Hits        52112    52112           
  Misses       5414     5414           
Files Changed Coverage Δ
lightning/src/chain/chainmonitor.rs 94.91% <100.00%> (ø)

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

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@tnull tnull merged commit 1d01e47 into lightningdevkit:main Sep 5, 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