Skip to content

Commit

Permalink
Revert "Electrum: change some connection log levels down to debug"
Browse files Browse the repository at this point in the history
This reverts commit 9d5d5b7.
  • Loading branch information
sstone committed Jan 14, 2020
1 parent 8682212 commit 5db67b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ElectrumClient(serverAddress: InetSocketAddress, ssl: SSL)(implicit val ec
})

// Start the client.
log.debug("connecting to server={}", serverAddress)
log.info("connecting to server={}", serverAddress)

val channelOpenFuture = b.connect(serverAddress.getHostName, serverAddress.getPort)

Expand Down Expand Up @@ -263,7 +263,7 @@ class ElectrumClient(serverAddress: InetSocketAddress, ssl: SSL)(implicit val ec

def disconnected: Receive = {
case ctx: ChannelHandlerContext =>
log.debug("connected to server={}", serverAddress)
log.info("connected to server={}", serverAddress)
send(ctx, version)
context become waitingForVersion(ctx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ElectrumClientPool(blockCount: AtomicLong, serverAddresses: Set[ElectrumSe
log.info("lost connection to {}, no active connections left", address)
goto(Disconnected) using DisconnectedData // no more connections
} else if (d.master != actor) {
log.debug("lost connection to {}, we still have our master server", address)
log.info("lost connection to {}, we still have our master server", address)
stay using d.copy(tips = tips1) // we don't care, this wasn't our master
} else {
log.info("lost connection to our master server {}", address)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ object ElectrumWallet {
val confirmedBalance = confirmedReceived.map(_.amount).sum - confirmedSpents.map(_.amount).sum
val unconfirmedBalance = unconfirmedReceived.map(_.amount).sum - unconfirmedSpents.map(_.amount).sum

logger.trace(s"scriptHash=$scriptHash confirmedBalance=$confirmedBalance unconfirmedBalance=$unconfirmedBalance)")
logger.debug(s"scriptHash=$scriptHash confirmedBalance=$confirmedBalance unconfirmedBalance=$unconfirmedBalance)")
(confirmedBalance, unconfirmedBalance)
}
}
Expand Down

0 comments on commit 5db67b4

Please sign in to comment.