From 13becdd6af49c653f5c46ef8c3809b9bbb8c5b35 Mon Sep 17 00:00:00 2001 From: fengzero Date: Fri, 24 Mar 2023 08:24:49 +0000 Subject: [PATCH] chore(log): log result of rm tar --- plugins/restful/log_handle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/restful/log_handle.c b/plugins/restful/log_handle.c index 04e40854..ace11977 100644 --- a/plugins/restful/log_handle.c +++ b/plugins/restful/log_handle.c @@ -66,8 +66,9 @@ void handle_logs_files(nng_aio *aio) return; } + rv = system("rm -rf /tmp/neuron_debug.tar.gz"); + nlog_warn("remove old neuron_debug.tar.gz, rv: %d", rv); /* tar the neuron directory */ - system("rm -rf /tmp/neuron_debug.tar.gz"); rv = system("tar -zcvf /tmp/neuron_debug.tar.gz ../neuron"); if (rv == -1) { nlog_error("failed to create neuron_debug.tar.gz, rv: %d", rv);