From 8d166fb1596fbb1d2508b0cf8795d8a1cda53fe7 Mon Sep 17 00:00:00 2001 From: fengzero Date: Fri, 31 Mar 2023 06:21:05 +0000 Subject: [PATCH] fix: check tar result --- plugins/restful/log_handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/restful/log_handle.c b/plugins/restful/log_handle.c index ace11977..87a3a7ee 100644 --- a/plugins/restful/log_handle.c +++ b/plugins/restful/log_handle.c @@ -78,7 +78,7 @@ void handle_logs_files(nng_aio *aio) return; } else { if (WIFEXITED(rv)) { - if (WEXITSTATUS(rv) != 0) { + if (WEXITSTATUS(rv) < 0) { nlog_error("failed to create neuron_debug.tar.gz, rv: %d", WEXITSTATUS(rv)); NEU_JSON_RESPONSE_ERROR(NEU_ERR_COMMAND_EXECUTION_FAILED, {