MCPcopy Create free account
hub / github.com/bitcoindevkit/bdk-cli / trace_logger

Function trace_logger

src/utils.rs:326–344  ·  view source on GitHub ↗
(
    mut info_subcriber: Receiver<Info>,
    mut warning_subscriber: UnboundedReceiver<Warning>,
)

Source from the content-addressed store, hash-verified

324
325#[cfg(feature = "cbf")]
326pub async fn trace_logger(
327 mut info_subcriber: Receiver<Info>,
328 mut warning_subscriber: UnboundedReceiver<Warning>,
329) {
330 loop {
331 tokio::select! {
332 info = info_subcriber.recv() => {
333 if let Some(info) = info {
334 tracing::info!("{info}")
335 }
336 }
337 warn = warning_subscriber.recv() => {
338 if let Some(warn) = warn {
339 tracing::warn!("{warn}")
340 }
341 }
342 }
343 }
344}
345
346// Handle Kyoto Client sync
347#[cfg(feature = "cbf")]

Callers 1

new_blockchain_clientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected