From ea6c4af6afe4f2916bb7cad016c4c3c84aae9a6c Mon Sep 17 00:00:00 2001 From: Arthur Golubtsov Date: Thu, 14 Nov 2019 06:46:28 +0000 Subject: [PATCH] Client: Update execute command --- Drone/copter_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Drone/copter_client.py b/Drone/copter_client.py index 7d914e3..08dcd79 100644 --- a/Drone/copter_client.py +++ b/Drone/copter_client.py @@ -258,8 +258,10 @@ def configure_bashrc(hostname): @messaging.message_callback("execute") def _execute(*args, **kwargs): command = kwargs.get("command", None) - if command: + if command is not None: + logger.info("Executing command: {}".format(command)) execute_command(command) + logger.info("Executing done") @messaging.message_callback("id") def _response_id(*args, **kwargs):