From 9ab9249151942ed2ff0a2bd682c38493069bd331 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 23 Nov 2012 11:16:46 +0100 Subject: [PATCH] Improving debugging msgs see BT#4882 --- tests/migrate/migration.custom.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/migrate/migration.custom.class.php b/tests/migrate/migration.custom.class.php index 1fb67b1290..4ec669352e 100644 --- a/tests/migrate/migration.custom.class.php +++ b/tests/migrate/migration.custom.class.php @@ -1382,13 +1382,13 @@ class MigrationCustom { ); } else { return array( - 'message' => "Extra field option was NOT deleted - no field options ids where found for variable: $extra_field_variable for sede:'".$original_data['item_id']."'", + 'message' => "Extra field option was NOT deleted. No field options ids where found for variable: '$extra_field_variable' with id:'".$original_data['item_id']."'", 'status_id' => self::TRANSACTION_STATUS_FAILED ); } } else { return array( - 'message' => "Extra field option was NOT deleted - extra field not found field_variable: $extra_field_variable", + 'message' => "Extra field option was NOT deleted - Extra field not found. Trying to locate with field_variable: '$extra_field_variable' and id: '{$original_data['item_id']}'", 'status_id' => self::TRANSACTION_STATUS_FAILED ); } @@ -1646,6 +1646,8 @@ class MigrationCustom { static function genericDetalles($data, $result_name, $params = array()) { error_log("Calling $result_name "); + $original_webservice_name = $result_name; + $result_name = $result_name.'Result'; $xml = $data->$result_name->any; @@ -1668,7 +1670,7 @@ class MigrationCustom { } else { return array( 'error' => true, - 'message' => "No data when calling $result_name result:".print_r($data, 1)." with params: ".print_r($params, 1), + 'message' => "No data when calling web service *$original_webservice_name* Result:".print_r($data, 1)." with params: ".print_r($params, 1), 'status_id' => MigrationCustom::TRANSACTION_STATUS_FAILED, ); }