| |
@@ -110,10 +110,11 @@
|
| |
body=body
|
| |
)
|
| |
publish(msg)
|
| |
+ log.debug("Message published")
|
| |
except PublishReturned as e:
|
| |
log.error('Fedora Messaging broker rejected message {}: {}'.format(msg.id, e))
|
| |
except ConnectionException as e:
|
| |
- log.error('Error sending message {}: {}'.format(msg.id, e))
|
| |
+ log.error('Error sending message {}: {}'.format(msg.id, e.reason))
|
| |
|
| |
|
| |
def create_message(result):
|
| |
@@ -161,11 +162,11 @@
|
| |
body=message
|
| |
)
|
| |
publish(msg)
|
| |
+ log.debug("Message published")
|
| |
except PublishReturned as e:
|
| |
log.error('Fedora Messaging broker rejected message {}: {}'.format(msg.id, e))
|
| |
except ConnectionException as e:
|
| |
- log.error('Error sending message {}: {}'.format(msg.id, e))
|
| |
-
|
| |
+ log.error('Error sending message {}: {}'.format(msg.id, e.reason))
|
| |
|
| |
|
| |
class StompPlugin(MessagingPlugin):
|
| |
ConnectionException seems to not print anything when printed as is
but it has a reason attribute which does provide more information
so print it directly.
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr