electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c738c62f01fd1515738f373ed7d928fb80183240
parent 53fa9356efc40e6a4d5037805ea81d299c24f61e
Author: ThomasV <thomasv@gitorious>
Date:   Mon, 19 Mar 2012 21:34:42 +0300

reduce verbosity

Diffstat:
Mserver/StratumJSONRPCServer.py | 8+++-----
Mserver/server.py | 1-
2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/server/StratumJSONRPCServer.py b/server/StratumJSONRPCServer.py @@ -102,7 +102,7 @@ class StratumJSONRPCDispatcher(SimpleXMLRPCServer.SimpleXMLRPCDispatcher): params = request.get('params') if params is None: params=[] params = [ self.session_id, request['id'] ] + params - print method, params + #print method, params try: response = self._dispatch(method, params) except: @@ -167,20 +167,18 @@ class StratumJSONRPCRequestHandler( self.report_404() return try: - print "GET" - self.server.session_id = None c = self.headers.get('cookie') if c: if c[0:8]=='SESSION=': - print "found cookie", c[8:] + #print "found cookie", c[8:] self.server.session_id = c[8:] if self.server.session_id is None: r = self.server._marshaled_single_dispatch({'method':'session.create', 'params':[], 'id':'z' }) r = jsonrpclib.loads(r) self.server.session_id = r.get('result') - print "setting cookie", self.server.session_id + #print "setting cookie", self.server.session_id data = json.dumps([]) response = self.server._marshaled_dispatch(data) diff --git a/server/server.py b/server/server.py @@ -456,7 +456,6 @@ def poll_session_json(session_id, message_id): if session is None: raise BaseException("session not found %s"%session_id) else: - print "poll: session found", session_id out = [] ret, addresses = modified_addresses(session) if ret: