Skip to content

Commit

Permalink
Switch Electrum request logs to debug level (#3753)
Browse files Browse the repository at this point in the history
Some time ago, we did some major changes in the Electrum client
implementation. Because of that, we added some `INFO` logging around
Electrum requests in order to facilitate potential debugging. As
Electrum-changes are now battle-tested, we can switch those request logs
to `DEBUG` level to decrease the amount of logs produced on `INFO`
level.
  • Loading branch information
tomaszslabon authored Dec 8, 2023
2 parents 39f3bac + fb0ffb8 commit 52592e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bitcoin/electrum/electrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ func requestWithRetry[K interface{}](
requestName string,
) (K, error) {
startTime := time.Now()
logger.Infof("starting [%s] request to Electrum server", requestName)
logger.Debugf("starting [%s] request to Electrum server", requestName)

var result K

Expand Down Expand Up @@ -1070,7 +1070,7 @@ func requestWithRetry[K interface{}](
return "success"
}

logger.Infof("[%s] request to Electrum server completed with [%s] after [%s]",
logger.Debugf("[%s] request to Electrum server completed with [%s] after [%s]",
requestName,
solveRequestOutcome(err),
time.Since(startTime),
Expand Down

0 comments on commit 52592e0

Please sign in to comment.