Discovery: Minor update in description and extra information in log

Former-commit-id: b24c095a8c75d190ba03ea089a9d680fcccd5b2b
This commit is contained in:
fbsanchez 2019-04-22 13:49:58 +02:00
parent 19ec5a0733
commit f06e81dcc4
2 changed files with 11 additions and 1 deletions

View File

@ -505,9 +505,14 @@ class DiscoveryTaskList extends Wizard
true,
['title' => __('Discovery NetScan')]
).'  ';
$data[6] .= network_profiles_get_name(
$str = network_profiles_get_name(
$task['id_network_profile']
);
if (!empty($str)) {
$data[6] .= $str;
} else {
$data[6] .= __('Discovery.NetScan');
}
break;
}
} else {

View File

@ -276,6 +276,11 @@ sub data_consumer ($$) {
}
};
if ($@) {
logger(
$pa_config,
'Cannot execute Discovery task: ' . safe_output($task->{'name'}) . $@,
10
);
update_recon_task ($dbh, $task_id, -1);
return;
}