mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-11 09:08:02 +00:00
add trace logging to electrum server calls
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user