mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 05:36:19 +08:00
Merge pull request #1141 from fengzeroz/v2.3
chore(log): log result of rm tar
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user