mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
add trace logging to electrum server calls
This commit is contained in:
parent
b3bd42b8f6
commit
fad1dad76e
1 changed files with 4 additions and 0 deletions
|
@ -96,6 +96,10 @@ public class TcpTransport implements CloseableTransport, TimeoutCounter {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void writeRequest(String request) throws IOException {
|
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())));
|
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
|
||||||
out.println(request);
|
out.println(request);
|
||||||
out.flush();
|
out.flush();
|
||||||
|
|
Loading…
Reference in a new issue