Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-11-06 09:32:31 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-06 09:32:31 +0400
commit76c783ee20ef96da54c19f813cf05d0d8f9c1ed8 (patch)
tree1740a4888e9d39865dfd6cd62b26f3e63ae75d4c /libs
parentc72f581955744088685829d292d1bdd5bdb9ca73 (diff)
Make error message more useful when tracking request fails
Diffstat (limited to 'libs')
-rw-r--r--libs/PiwikTracker/PiwikTracker.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php
index 0300983f53..c1779dfea6 100644
--- a/libs/PiwikTracker/PiwikTracker.php
+++ b/libs/PiwikTracker/PiwikTracker.php
@@ -1069,10 +1069,19 @@ class PiwikTracker
}
/**
+ * Used in tests to output useful error messages.
+ *
+ * @ignore
+ */
+ static public $DEBUG_LAST_REQUESTED_URL = false;
+
+ /**
* @ignore
*/
protected function sendRequest($url, $method = 'GET', $data = null, $force = false)
{
+ self::$DEBUG_LAST_REQUESTED_URL = $url;
+
// if doing a bulk request, store the url
if ($this->doBulkRequests && !$force) {
$this->storedTrackingActions[]