From 0c5bfb8c2660f3eb6fe282379e5e971bb95c67fa Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 24 Jul 2015 14:23:03 +0200 Subject: [PATCH] print -> util.print_error --- lib/websockets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/websockets.py b/lib/websockets.py index e772e8442..ec10a6282 100644 --- a/lib/websockets.py +++ b/lib/websockets.py @@ -37,10 +37,10 @@ class ElectrumWebSocket(WebSocket): request_queue.put((self, request_id)) def handleConnected(self): - print "connected", self.address + util.print_error("connected", self.address) def handleClose(self): - print "closed", self.address + util.print_error("closed", self.address) @@ -104,7 +104,7 @@ class WsClientThread(daemon.ClientThread): result = r.get('result') if method == 'blockchain.address.subscribe': - print 'response', r + util.print_error('response', r) if result is not None: request = {'method':'blockchain.address.get_balance', 'params':params, 'id':self.counter} self.server.send_request(self, request) @@ -112,7 +112,7 @@ class WsClientThread(daemon.ClientThread): self.counter += 1 if r.get('method') == 'blockchain.address.get_balance': - print 'response', r + util.print_error('response', r) if not ws.closed: if sum(result.values()) >=amount: ws.sendMessage(unicode('paid'))