Browse Source

add trace logging to electrum server calls

terminal
Craig Raw 2 years ago
parent
commit
fad1dad76e
  1. 4
      src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java

4
src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java

@ -96,6 +96,10 @@ public class TcpTransport implements CloseableTransport, TimeoutCounter {
}
private void writeRequest(String request) throws IOException {
if(log.isTraceEnabled()) {
log.trace("Sending to electrum server at " + server + ": " + request);
}
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
out.println(request);
out.flush();

Loading…
Cancel
Save