From e4303bb77fbe7164ab19e389efd6e2aa71924528 Mon Sep 17 00:00:00 2001 From: postmannen Date: Sun, 4 Apr 2021 06:45:03 +0200 Subject: [PATCH] textlogging for clicommand --- example/toShip1-CLICommandRequest1.json | 2 +- subscriber_method_types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/toShip1-CLICommandRequest1.json b/example/toShip1-CLICommandRequest1.json index 37d9c7c..0886913 100644 --- a/example/toShip1-CLICommandRequest1.json +++ b/example/toShip1-CLICommandRequest1.json @@ -1,6 +1,6 @@ [ { - + "label":"cli-command-executed-result", "toNode": "ship1", "data": ["bash","-c","sleep 3 & tree ./"], "method":"CLICommandRequest", diff --git a/subscriber_method_types.go b/subscriber_method_types.go index 280e4e2..0ce8db0 100644 --- a/subscriber_method_types.go +++ b/subscriber_method_types.go @@ -530,7 +530,7 @@ func (m methodCLICommandRequest) handler(proc process, message Message, node str // Prepare and queue for sending a new message with the output // of the action executed. - newReplyMessage(proc, message, CLICommandReply, out) + newReplyMessage(proc, message, TextLogging, out) } }()