From 4ea5b2a7e56a07432a81e3decbf40d315c6dbd2c Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 14 Dec 2017 08:54:16 +0100 Subject: [PATCH] add debug for nsclient request query --- apps/nsclient/restapi/mode/query.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/nsclient/restapi/mode/query.pm b/apps/nsclient/restapi/mode/query.pm index 182b763b9..339d94b71 100644 --- a/apps/nsclient/restapi/mode/query.pm +++ b/apps/nsclient/restapi/mode/query.pm @@ -158,6 +158,7 @@ sub run { } my ($content) = $self->{http}->request(url_path => '/query/' . $self->{option_results}->{command} . '?' . $encoded_args); + $self->{output}->output_add(long_msg => "nsclient return = " . $content, debug => 1); $self->check_nscp_result(content => $content); $self->{output}->exit();