From 58942238add4cbacfeb3a07ab939e477e350dc1f Mon Sep 17 00:00:00 2001
From: Paul-Winpenny <92634321+Paul-Winpenny@users.noreply.github.com>
Date: Mon, 18 Nov 2024 15:38:18 +0000
Subject: [PATCH] Trying to figure out why the logged messages aren't being
 printed out

---
 ros2/src/robobin/robobin/api_helpers/connection_manager.py | 6 ------
 ros2/src/robobin/robobin/api_node.py                       | 2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/ros2/src/robobin/robobin/api_helpers/connection_manager.py b/ros2/src/robobin/robobin/api_helpers/connection_manager.py
index d202ab3d..e7e106c0 100644
--- a/ros2/src/robobin/robobin/api_helpers/connection_manager.py
+++ b/ros2/src/robobin/robobin/api_helpers/connection_manager.py
@@ -69,9 +69,3 @@ class ConnectionManager:
     
 if __name__ == "__main__":
     ConnectionManager(None).start()
-    while True:
-        time.sleep(1)
-        user_input = input("Type 'exit' to stop: ")
-        if user_input == "exit":
-            break
-    ConnectionManager(None).stop()
diff --git a/ros2/src/robobin/robobin/api_node.py b/ros2/src/robobin/robobin/api_node.py
index c7fa7e1f..c3754537 100644
--- a/ros2/src/robobin/robobin/api_node.py
+++ b/ros2/src/robobin/robobin/api_node.py
@@ -24,7 +24,7 @@ class ApiNode(Node):
         self.connection_manager = ConnectionManager(self)
 
         self.connection_manager.start()
-
+        self.get_logger().info("Connection manager started.")
     def handle_client_connection(self, client_socket):
         """Handles incoming TCP client connections."""
         try:
-- 
GitLab