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);