Skip to content

Commit

Permalink
Improving log information
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jan 23, 2021
1 parent 772cc15 commit 88bd6d9
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 38 deletions.
87 changes: 53 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ descriptor-wallet = { version = "0.3.3", features = ["keygen"] }
slip132 = "0.3"
lnp-core = "0.3"
rgb-core = { version = "0.3", optional = true }
rgb_node = { version = "0.3.0-rc.1", path = "../../lnpbp/rgb-node", optional = true, default-features = false, features = ["client", "fungibles"] }
rgb_node = { version = "0.3", optional = true, default-features = false, features = ["client", "fungibles"] }
internet2 = { version = "0.3.7", default-features = false, features = ["derive", "descriptor-wallet", "bitcoin-ext", "lnpbp"] }
microservices = { version = "0.3.7", default-features = false, features = ["peer"] }
# Bitcoin
Expand Down
2 changes: 1 addition & 1 deletion src/cli/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl Exec for Command {
err
))
})?;
trace!("Outpoint parsed as {:?}", outpoint);
trace!("Outpoint parsed as {}", outpoint);

runtime.request(
channel.clone().into(),
Expand Down
4 changes: 2 additions & 2 deletions src/peerd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl peer::Handler for ListenerRuntime {
}

fn handle_err(&mut self, err: Self::Error) -> Result<(), Self::Error> {
debug!("Underlying peer interface requested to handle {:?}", err);
debug!("Underlying peer interface requested to handle {}", err);
match err {
Error::Peer(presentation::Error::Transport(
transport::Error::TimedOut,
Expand All @@ -158,7 +158,7 @@ impl peer::Handler for ListenerRuntime {
// for all other error types, indicating internal errors, we
// propagate error to the upper level
_ => {
error!("Unrecoverable peer error {:?}, halting", err);
error!("Unrecoverable peer error {}, halting", err);
Err(err)
}
}
Expand Down

0 comments on commit 88bd6d9

Please sign in to comment.