Skip to content

Commit

Permalink
Requires pika >= 0.9.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jukka Ojaniemi committed Apr 4, 2013
1 parent 0a08c1f commit 47c34d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -26,7 +26,7 @@
zip_safe=False,
install_requires=[
"setuptools",
"pika>=0.9.8",
"pika>=0.9.12",
],
extras_require={
'develop': ['Sphinx'],
Expand Down
5 changes: 3 additions & 2 deletions src/pikacon/pikacon.py
Expand Up @@ -157,6 +157,7 @@ def loop(self):
self.reconnection_delay)
time.sleep(self.reconnection_delay)

def on_channel_closed(self, code, text):
logger.warning("Channel closed with reason '%s %s'", code, text)
def on_channel_closed(self, channel, code, text):
logger.warning("Channel %i closed with reason '%s %s'",
channel, code, text)
self.connection.close(code, text)

0 comments on commit 47c34d0

Please sign in to comment.