Skip to content

Commit

Permalink
Merge pull request romanz#737 from romanz/fix-logging
Browse files Browse the repository at this point in the history
Don't log scripthash
  • Loading branch information
romanz authored Jun 27, 2022
2 parents abf7ce1 + bf78c13 commit 2c6aafd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/electrum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ impl Rpc {
Some(status) => self.tracker.get_balance(status),
None => {
info!(
"{} blockchain.scripthash.get_balance called for unsubscribed scripthash: {}",
UNSUBSCRIBED_QUERY_MESSAGE, scripthash
"{} blockchain.scripthash.get_balance called for unsubscribed scripthash",
UNSUBSCRIBED_QUERY_MESSAGE
);
self.tracker.get_balance(&self.new_status(*scripthash)?)
}
Expand All @@ -272,8 +272,8 @@ impl Rpc {
Some(status) => json!(status.get_history()),
None => {
info!(
"{} blockchain.scripthash.get_history called for unsubscribed scripthash: {}",
UNSUBSCRIBED_QUERY_MESSAGE, scripthash
"{} blockchain.scripthash.get_history called for unsubscribed scripthash",
UNSUBSCRIBED_QUERY_MESSAGE
);
json!(self.new_status(*scripthash)?.get_history())
}
Expand All @@ -290,8 +290,8 @@ impl Rpc {
Some(status) => self.tracker.get_unspent(status),
None => {
info!(
"{} blockchain.scripthash.listunspent called for unsubscribed scripthash: {}",
UNSUBSCRIBED_QUERY_MESSAGE, scripthash
"{} blockchain.scripthash.listunspent called for unsubscribed scripthash",
UNSUBSCRIBED_QUERY_MESSAGE
);
self.tracker.get_unspent(&self.new_status(*scripthash)?)
}
Expand Down

0 comments on commit 2c6aafd

Please sign in to comment.