remove some logs

This commit is contained in:
Sem van der Hoeven
2023-05-25 21:08:43 +02:00
parent 741e710940
commit 752e1560c8
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World Simple App</title>
<title>5G drone API</title>
</head>
<body>
<div>Hello World!</div>

View File

@@ -121,8 +121,8 @@ class ApiListener(Node):
self.get_logger().info(f'Consuming message: {message}')
try:
message_json = json.loads(str(message))
self.get_logger().info(f'JSON: {str(message_json)}, type:{type(message_json)}')
self.get_logger().info(f'JSON CMD: {str(message_json["command"])}, type:{type(message_json["command"])}')
# self.get_logger().info(f'JSON: {str(message_json)}, type:{type(message_json)}')
# self.get_logger().info(f'JSON CMD: {str(message_json["command"])}, type:{type(message_json["command"])}')
if not "command" in message_json:
self.get_logger().error('Received message without command')
self.send_available_commands()