diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-06 09:32:31 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-06 09:32:31 +0400 |
commit | 76c783ee20ef96da54c19f813cf05d0d8f9c1ed8 (patch) | |
tree | 1740a4888e9d39865dfd6cd62b26f3e63ae75d4c /libs | |
parent | c72f581955744088685829d292d1bdd5bdb9ca73 (diff) |
Make error message more useful when tracking request fails
Diffstat (limited to 'libs')
-rw-r--r-- | libs/PiwikTracker/PiwikTracker.php | 9 |
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[] |