Discovery: Minor update in description and extra information in log
Former-commit-id: b24c095a8c75d190ba03ea089a9d680fcccd5b2b
This commit is contained in:
parent
19ec5a0733
commit
f06e81dcc4
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue