Ensure `ChannelMonitor` `Logger`s are always wrapped with metadata
authorMatt Corallo <git@bluematt.me>
Sun, 3 Dec 2023 20:03:51 +0000 (20:03 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 3 Dec 2023 20:05:53 +0000 (20:05 +0000)
commit65e37fdc2909d9c8bb86ca4872725f9175aefd99
treefaa9d86dfd15d861e0c047146fcb958a0023c180
parent6b43153861c4f8dd1f44da737ad0b06eab8659e7
Ensure `ChannelMonitor` `Logger`s are always wrapped with metadata

In order to ensure log lines generated by `ChannelMonitor` always
have a counterparty and channel ID entry, this consistently wraps
`Logger`s in a decorator in all `pub(X)` `ChannelMonitor` functions,
removing `pub` markings on `ChannelMonitorImpl` methods that aren't
actually publicly reachable anyway.

This also lets us clean up the `Logger` types in various
`ChannelMonitor` methods.
lightning/src/chain/chainmonitor.rs
lightning/src/chain/channelmonitor.rs
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs