Skip to content

Commit

Permalink
Added some additional logging for Issue #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Apr 24, 2015
1 parent e3d93de commit 3b4c710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions amqpstorm/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ def _fetch_message(self):
return None
basic_deliver = self._inbound.pop(0)
if not isinstance(basic_deliver, pamqp_spec.Basic.Deliver):
LOGGER.warning('Received an out-of-order Basic.Deliver frame')
return None
content_header = self._inbound.pop(0)
if not isinstance(content_header, ContentHeader):
LOGGER.warning('Received an out-of-order ContentHeader frame')
return None
body = self._build_message_body(content_header.body_size)

Expand Down
1 change: 0 additions & 1 deletion examples/basic_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def consumer():
if result:
# If we got a message, handle it.
print('Message:', result['body'])
print(result)

# Mark the message as handle.
channel.basic.ack(delivery_tag=result['method']['delivery_tag'])
Expand Down

0 comments on commit 3b4c710

Please sign in to comment.