Merge pull request #1141 from fengzeroz/v2.3

chore(log): log result of rm tar
This commit is contained in:
fengzeroz
2023-03-24 16:26:57 +08:00
committed by GitHub
+2 -1
View File
@@ -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);