From 658abc2bb8dd9fe896b6f1145b6a9f669320ce3b Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Thu, 14 Jun 2018 10:53:59 +0100 Subject: [PATCH] Debug log the raw Zaqar message Currently we have no record of this, it would be useful to include it when --debug is used on a CLI command. Closes-Bug: #1776874 Change-Id: Iec3267423594db838a5c8c0624aaae23aab0f488 --- tripleoclient/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tripleoclient/plugin.py b/tripleoclient/plugin.py index 66ad03f4a..bb05c9fef 100644 --- a/tripleoclient/plugin.py +++ b/tripleoclient/plugin.py @@ -146,7 +146,9 @@ class WebsocketClient(object): while True: try: - yield self.recv()['body']['payload'] + message = self.recv() + LOG.debug(message) + yield message['body']['payload'] except websocket.WebSocketTimeoutException: raise exceptions.WebSocketTimeout()