Commit 3db4b915 authored by Kenneth Giusti's avatar Kenneth Giusti

Remove debug log messages from fast-path

parent ad9119a2
...@@ -486,8 +486,7 @@ class Connection(Endpoint): ...@@ -486,8 +486,7 @@ class Connection(Endpoint):
# process events from proton: # process events from proton:
pn_event = self._pn_collector.peek() pn_event = self._pn_collector.peek()
while pn_event: while pn_event:
LOG.debug("pn_event: %s received", pn_event.type) # LOG.debug("pn_event: %s received", pn_event.type)
# links will generate the most events, poll them first
if _Link._handle_proton_event(pn_event, self): if _Link._handle_proton_event(pn_event, self):
pass pass
elif self._handle_proton_event(pn_event): elif self._handle_proton_event(pn_event):
...@@ -548,7 +547,6 @@ class Connection(Endpoint): ...@@ -548,7 +547,6 @@ class Connection(Endpoint):
if c <= 0: if c <= 0:
return c return c
try: try:
LOG.debug("pushing %s bytes to transport:", c)
rc = self._pn_transport.push(in_data[:c]) rc = self._pn_transport.push(in_data[:c])
except Exception as e: except Exception as e:
self._read_done = True self._read_done = True
...@@ -597,7 +595,6 @@ class Connection(Endpoint): ...@@ -597,7 +595,6 @@ class Connection(Endpoint):
if c <= 0: if c <= 0:
return None return None
try: try:
LOG.debug("Getting %s bytes output from transport", c)
buf = self._pn_transport.peek(c) buf = self._pn_transport.peek(c)
except Exception as e: except Exception as e:
self._connection_failed(str(e)) self._connection_failed(str(e))
...@@ -606,7 +603,6 @@ class Connection(Endpoint): ...@@ -606,7 +603,6 @@ class Connection(Endpoint):
def output_written(self, count): def output_written(self, count):
try: try:
LOG.debug("Popping %s bytes output from transport", count)
self._pn_transport.pop(count) self._pn_transport.pop(count)
except Exception as e: except Exception as e:
self._write_done = True self._write_done = True
......
...@@ -437,7 +437,6 @@ class SenderLink(_Link): ...@@ -437,7 +437,6 @@ class SenderLink(_Link):
delivery_callback, handle, delivery_callback, handle,
deadline) deadline)
self._pn_link.delivery(tag) self._pn_link.delivery(tag)
LOG.debug("Sending a message, tag=%s", tag)
pn_delivery = self._pn_link.current pn_delivery = self._pn_link.current
if pn_delivery and pn_delivery.writable: if pn_delivery and pn_delivery.writable:
...@@ -446,7 +445,6 @@ class SenderLink(_Link): ...@@ -446,7 +445,6 @@ class SenderLink(_Link):
self._pending_sends.append(tag) self._pending_sends.append(tag)
tag = self._pending_sends.popleft() tag = self._pending_sends.popleft()
send_req = self._send_requests[tag] send_req = self._send_requests[tag]
LOG.debug("Sending previous pending message, tag=%s", tag)
self._write_msg(pn_delivery, send_req) self._write_msg(pn_delivery, send_req)
else: else:
LOG.debug("Send is pending for credit, tag=%s", tag) LOG.debug("Send is pending for credit, tag=%s", tag)
...@@ -475,13 +473,9 @@ class SenderLink(_Link): ...@@ -475,13 +473,9 @@ class SenderLink(_Link):
def _process_delivery(self, pn_delivery): def _process_delivery(self, pn_delivery):
"""Check if the delivery can be processed.""" """Check if the delivery can be processed."""
LOG.debug("Processing send delivery, tag=%s",
str(pn_delivery.tag))
if pn_delivery.tag in self._send_requests: if pn_delivery.tag in self._send_requests:
if pn_delivery.settled or pn_delivery.remote_state: if pn_delivery.settled or pn_delivery.remote_state:
# remote has reached a 'terminal state' # remote has reached a 'terminal state'
LOG.debug("Remote has processed a sent msg")
outcome = pn_delivery.remote_state outcome = pn_delivery.remote_state
state = SenderLink._DISPOSITION_STATE_MAP.get(outcome, state = SenderLink._DISPOSITION_STATE_MAP.get(outcome,
self.UNKNOWN) self.UNKNOWN)
...@@ -501,7 +495,6 @@ class SenderLink(_Link): ...@@ -501,7 +495,6 @@ class SenderLink(_Link):
pn_delivery.settle() pn_delivery.settle()
elif pn_delivery.writable: elif pn_delivery.writable:
# we can now send on this delivery # we can now send on this delivery
LOG.debug("Delivery has become writable")
if self._pending_sends: if self._pending_sends:
tag = self._pending_sends.popleft() tag = self._pending_sends.popleft()
send_req = self._send_requests[tag] send_req = self._send_requests[tag]
...@@ -513,7 +506,6 @@ class SenderLink(_Link): ...@@ -513,7 +506,6 @@ class SenderLink(_Link):
def _process_credit(self): def _process_credit(self):
# check if any pending deliveries are now writable: # check if any pending deliveries are now writable:
LOG.debug("credit event, link=%s", self.name)
pn_delivery = self._pn_link.current pn_delivery = self._pn_link.current
while (self._pending_sends and while (self._pending_sends and
pn_delivery and pn_delivery.writable): pn_delivery and pn_delivery.writable):
...@@ -523,14 +515,12 @@ class SenderLink(_Link): ...@@ -523,14 +515,12 @@ class SenderLink(_Link):
# Alert if credit has become available # Alert if credit has become available
if self._handler and not self._rejected: if self._handler and not self._rejected:
if 0 < self._pn_link.credit > self._last_credit: if 0 < self._pn_link.credit > self._last_credit:
LOG.debug("Credit is available, link=%s", self.name)
with self._callback_lock: with self._callback_lock:
self._handler.credit_granted(self) self._handler.credit_granted(self)
self._last_credit = self._pn_link.credit self._last_credit = self._pn_link.credit
def _write_msg(self, pn_delivery, send_req): def _write_msg(self, pn_delivery, send_req):
# given a writable delivery, send a message # given a writable delivery, send a message
LOG.debug("Sending message to engine, tag=%s", send_req.tag)
self._pn_link.send(send_req.message.encode()) self._pn_link.send(send_req.message.encode())
self._pn_link.advance() self._pn_link.advance()
self._last_credit = self._pn_link.credit self._last_credit = self._pn_link.credit
...@@ -694,10 +684,7 @@ class ReceiverLink(_Link): ...@@ -694,10 +684,7 @@ class ReceiverLink(_Link):
def _process_delivery(self, pn_delivery): def _process_delivery(self, pn_delivery):
"""Check if the delivery can be processed.""" """Check if the delivery can be processed."""
LOG.debug("Processing receive delivery, tag=%s",
str(pn_delivery.tag))
if pn_delivery.readable and not pn_delivery.partial: if pn_delivery.readable and not pn_delivery.partial:
LOG.debug("Receive delivery readable")
data = self._pn_link.recv(pn_delivery.pending) data = self._pn_link.recv(pn_delivery.pending)
msg = proton.Message() msg = proton.Message()
msg.decode(data) msg.decode(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment