From dd38be123f61dedb8bbebf99d20e4dfecf54c582 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Thu, 8 Jun 2023 13:10:23 +0200 Subject: [PATCH] log type of error --- src/api_communication/api_communication/api_listener.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api_communication/api_communication/api_listener.py b/src/api_communication/api_communication/api_listener.py index 49a0f52a..c8eee072 100644 --- a/src/api_communication/api_communication/api_listener.py +++ b/src/api_communication/api_communication/api_listener.py @@ -460,7 +460,8 @@ class ApiListener(Node): self.send_available_commands() except Exception as e: self.get_logger().error('Something went wrong!') - self.get_logger().error(str(e)) + self.get_logger().error(str(type(e))) + self.get_logger().error(str(e.with_traceback())) async def api_handler(self, websocket): """Handles the websocket connection