-
Notifications
You must be signed in to change notification settings - Fork 364
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
Add peer_id and channel_id explicitly to log records #2314
Merged
Merged
Commits on Dec 1, 2023
-
Pass Record by value to Logger
Instead of passing a reference to a Record, pass the Logger an owned Record so that it can be decorated with semantic context.
Configuration menu - View commit details
-
Copy full SHA for 0cba31f - Browse repository at this point
Copy the full SHA 0cba31fView commit details -
Add semantics to logger::Records
Include optional peer and channel ids to logger::Record. This will be used by wrappers around Logger in order to provide more context (e.g., the peer that sent a message, the channel an operation is pertaining to, etc.). Implementations of Logger can include this as metadata to aid in searching logs.
Configuration menu - View commit details
-
Copy full SHA for a42aeb5 - Browse repository at this point
Copy the full SHA a42aeb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 973636b - Browse repository at this point
Copy the full SHA 973636bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa7f2f4 - Browse repository at this point
Copy the full SHA fa7f2f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa502fe - Browse repository at this point
Copy the full SHA aa502feView commit details -
Configuration menu - View commit details
-
Copy full SHA for a727cca - Browse repository at this point
Copy the full SHA a727ccaView commit details -
Use wrapper to add context to logging
Using a decorator pattern, add peer_id and channel_id to Record stored on Logger.
Configuration menu - View commit details
-
Copy full SHA for df3ab2e - Browse repository at this point
Copy the full SHA df3ab2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6d8f35 - Browse repository at this point
Copy the full SHA e6d8f35View commit details -
Refactor ChainMonitor::update_channel error case
Move the handling of ChannelMonitorUpdateStatus::UnrecoverableError to the point of error to avoid needing an unwrap later when re-wrapping the logger.
Configuration menu - View commit details
-
Copy full SHA for e21a500 - Browse repository at this point
Copy the full SHA e21a500View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.