diff --git a/src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java b/src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java index 451ac189..9b551ce3 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/TcpTransport.java +++ b/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();