Merge branch 'ent-11364-error-de-parseo-xml' into 'develop'

Change to reduce event text from XML parse error

See merge request artica/pandorafms!6024
This commit is contained in:
Daniel Rodriguez 2023-06-26 07:47:20 +00:00
commit e3ef712e6f
1 changed files with 2 additions and 2 deletions

View File

@ -324,8 +324,8 @@ sub data_consumer ($$) {
return;
}
rename($file_name, $file_name . '_BADXML');
pandora_event ($pa_config, "Unable to process XML data file '$file_name': $xml_err", 0, 0, 0, 0, 0, 'error', 0, $dbh);
rename($file_name, $file_name.'_BADXML');
pandora_event ($pa_config, "Unable to process XML data file '$task'.", 0, 0, 0, 0, 0, 'error', 0, $dbh);
agent_unlock($pa_config, $agent_name);
}