From f434e1a6859aff88729e3f504cb98964ce03f7c4 Mon Sep 17 00:00:00 2001 From: Kevin D Date: Mon, 2 Feb 2026 12:16:13 -0800 Subject: [PATCH] logging consistency --- aerpaw/client/uav_runner.py | 2 +- aerpaw/impl/controller_impl.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/aerpaw/client/uav_runner.py b/aerpaw/client/uav_runner.py index 10ed12b..51b4408 100644 --- a/aerpaw/client/uav_runner.py +++ b/aerpaw/client/uav_runner.py @@ -207,7 +207,7 @@ class UAVRunner(BasicRunner): print(f"[UAV] Sent {MessageType.READY.name}") elif msg_type == MessageType.READY: - print("[UAV] Received READY from server - mission complete") + print("[UAV] Mission complete") break else: diff --git a/aerpaw/impl/controller_impl.cpp b/aerpaw/impl/controller_impl.cpp index 1d90798..190f4b5 100644 --- a/aerpaw/impl/controller_impl.cpp +++ b/aerpaw/impl/controller_impl.cpp @@ -135,7 +135,7 @@ int sendMessageType(int clientId, int msgType) { return 0; } - std::cout << "Sent to client " << clientId << ": " << messageTypeName(msg) << " (" << (int)msg << ")\n"; + std::cout << "Sent " << messageTypeName(msg) << " to client " << clientId << "\n"; return 1; } @@ -192,13 +192,11 @@ int waitForAllMessageType(int numClients, int expectedType) { int len = recv(clientSockets[i], &msgType, 1, 0); if (len != 1) return 0; - std::cout << "Received from client " << (i + 1) << ": " - << messageTypeName(msgType) << " (" << (int)msgType << ")\n"; + std::cout << "Received " << messageTypeName(msgType) << " from client " << (i + 1) << "\n"; if (msgType == expected) { completed[i] = true; completedCount++; - std::cout << "Client " << (i + 1) << " completed: " << messageTypeName(expected) << "\n"; } } }