summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2871f0)
raw | patch | inline | side by side (parent: a2871f0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Aug 2010 08:27:22 +0000 (08:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Aug 2010 08:27:22 +0000 (08:27 +0000) |
-Added stats::log to php_setup.inc: gosaRaiseError
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19361 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19361 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/php_setup.inc | patch | blob | history |
index 515830aa6ebf0be3bd7d032934084ef0ae40d2d5..c1e7184a548eb1fda0474ae8f27bf46235672077 100644 (file)
new log("debug","all",$errfile,array(),"Type:".$errno.", Message:".$errstr.", File:".$errfile.", Line: ".$errline);
}
+ // Log errors in usage DB
+ if(class_exists('stats') && !preg_match("/No such object/",$errstr)){
+ stats::log('error', $class = 'ERROR', $category = array(), $action = __FUNCTION__,
+ $amount = 1, $duration = 0, $errno);
+ }
+
/* Create header as needed */
if ($error_collector == ""){