Change to reduce event text from XML parse error

This commit is contained in:
felix.suarez 2023-06-02 16:06:28 -05:00
parent 08b00dba7b
commit fd5ba3d0f8

View File

@ -325,7 +325,7 @@ sub data_consumer ($$) {
}
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);
pandora_event ($pa_config, "Unable to process XML data file ".(substr $file_name, 0, 20)."...", 0, 0, 0, 0, 0, 'error', 0, $dbh);
agent_unlock($pa_config, $agent_name);
}