fix: Change $file_name variable for $task

This commit is contained in:
felix.suarez 2023-06-05 12:36:53 -05:00
parent fd5ba3d0f8
commit 3ed55ec88a
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 ".(substr $file_name, 0, 20)."...", 0, 0, 0, 0, 0, 'error', 0, $dbh);
rename($task, $task.'_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);
}