add trace logging to electrum server calls

This commit is contained in:
Craig Raw 2022-08-17 11:11:39 +02:00
parent b3bd42b8f6
commit fad1dad76e

View file

@ -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();