summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/bitmask/backend/backend.py6
-rw-r--r--src/leap/bitmask/backend/backend_proxy.py10
-rw-r--r--src/leap/bitmask/backend/signaler.py10
-rw-r--r--src/leap/bitmask/backend/signaler_qt.py4
4 files changed, 17 insertions, 13 deletions
diff --git a/src/leap/bitmask/backend/backend.py b/src/leap/bitmask/backend/backend.py
index 5f696f75..833f4368 100644
--- a/src/leap/bitmask/backend/backend.py
+++ b/src/leap/bitmask/backend/backend.py
@@ -86,7 +86,7 @@ class Backend(object):
try:
request = self._zmq_socket.recv(zmq.NOBLOCK)
self._zmq_socket.send("OK")
- logger.debug("Received request: '{0}'".format(request))
+ # logger.debug("Received request: '{0}'".format(request))
self._process_request(request)
except zmq.ZMQError as e:
if e.errno != zmq.EAGAIN:
@@ -180,8 +180,8 @@ class Backend(object):
if kwargs is not None:
method = lambda: func(**kwargs)
- logger.debug("Running method: '{0}' "
- "with args: '{1}' in a thread".format(api_method, kwargs))
+ # logger.debug("Running method: '{0}' "
+ # "with args: '{1}' in a thread".format(api_method, kwargs))
# run the action in a thread and keep track of it
d = threads.deferToThread(method)
diff --git a/src/leap/bitmask/backend/backend_proxy.py b/src/leap/bitmask/backend/backend_proxy.py
index 39ed322e..f683e465 100644
--- a/src/leap/bitmask/backend/backend_proxy.py
+++ b/src/leap/bitmask/backend/backend_proxy.py
@@ -131,14 +131,16 @@ class BackendProxy(object):
:param request: the request to send.
:type request: str
"""
- logger.debug("Sending request to backend: {0}".format(request))
+ # logger.debug("Sending request to backend: {0}".format(request))
self._socket.send(request)
try:
# Get the reply.
- response = self._socket.recv()
- msg = "Received reply for '{0}' -> '{1}'".format(request, response)
- logger.debug(msg)
+ self._socket.recv()
+ # response = self._socket.recv()
+ # msg = "Received reply for '{0}' -> '{1}'"
+ # msg = msg.format(request, response)
+ # logger.debug(msg)
except zmq.error.Again as e:
msg = "Timeout error contacting backend. {0!r}".format(e)
logger.critical(msg)
diff --git a/src/leap/bitmask/backend/signaler.py b/src/leap/bitmask/backend/signaler.py
index 6a0ec88a..f21f0998 100644
--- a/src/leap/bitmask/backend/signaler.py
+++ b/src/leap/bitmask/backend/signaler.py
@@ -145,14 +145,16 @@ class Signaler(object):
:param request: the request to send.
:type request: str
"""
- logger.debug("Signaling '{0}'".format(request))
+ # logger.debug("Signaling '{0}'".format(request))
self._socket.send(request)
# Get the reply.
try:
- response = self._socket.recv()
- msg = "Received reply for '{0}' -> '{1}'".format(request, response)
- logger.debug(msg)
+ self._socket.recv()
+ # response = self._socket.recv()
+ # msg = "Received reply for '{0}' -> '{1}'"
+ # msg = msg.format(request, response)
+ # logger.debug(msg)
except zmq.error.Again as e:
msg = "Timeout error contacting signaler. {0!r}".format(e)
logger.critical(msg)
diff --git a/src/leap/bitmask/backend/signaler_qt.py b/src/leap/bitmask/backend/signaler_qt.py
index ce9c24f5..4ec27a1e 100644
--- a/src/leap/bitmask/backend/signaler_qt.py
+++ b/src/leap/bitmask/backend/signaler_qt.py
@@ -72,7 +72,7 @@ class SignalerQt(QtCore.QThread):
# Wait for next request from client
try:
request = socket.recv(zmq.NOBLOCK)
- logger.debug("Received request: '{0}'".format(request))
+ # logger.debug("Received request: '{0}'".format(request))
socket.send("OK")
self._process_request(request)
except zmq.ZMQError as e:
@@ -116,7 +116,7 @@ class SignalerQt(QtCore.QThread):
logger.warning("Signal not implemented, '{0}'".format(signal))
return
- logger.debug("Emitting '{0}'".format(signal))
+ # logger.debug("Emitting '{0}'".format(signal))
if data is None:
qt_signal.emit()
else: