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/core
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-12 02:09:39 +0400
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-12 02:09:39 +0400
commit730571149b97e4117d9691b57cb2c3426b2e08c8 (patch)
tree2d7e30445386450e3315cb01cf71706b216928b6 /core
parentf19ee2f00a6be07d00c23a5b9c081373a955e3d4 (diff)
- refs #686 properly handling exception so it doesnt show up in logs
Diffstat (limited to 'core')
-rw-r--r--core/Tracker.php1
-rw-r--r--core/Tracker/Visit.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index 11b24c30b2..eb1cc0f11e 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -65,6 +65,7 @@ class Piwik_Tracker
unset($visit);
} catch (PDOException $e) {
printDebug($e->getMessage());
+ } catch(Piwik_Tracker_Visit_Excluded $e) {
}
}
$this->end();
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php
index 7c308f0706..8a1d257f9f 100644
--- a/core/Tracker/Visit.php
+++ b/core/Tracker/Visit.php
@@ -257,7 +257,7 @@ class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface
if($refererInfo['referer_name'] == "Live"
&& preg_match("/^65\.55/", long2ip($userInfo['location_ip'])))
{
- throw new Exception("Spam Live bot, go away, you're making me cry");
+ throw new Piwik_Tracker_Visit_Excluded("Spam Live bot, go away, you're making me cry");
}
/**
@@ -903,3 +903,5 @@ class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface
class Piwik_Tracker_Visit_VisitorNotFoundInDatabase extends Exception {
}
+class Piwik_Tracker_Visit_Excluded extends Exception {
+}