Skip to content
Snippets Groups Projects
Commit 1b2b6a66 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

only report errors from statistics cron hook

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1058 44740490-163a-0410-bde0-09ae8108e29a
parent dd21f9f1
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,10 @@ function statistics_hook_cron(&$croninfo) { ...@@ -15,9 +15,10 @@ function statistics_hook_cron(&$croninfo) {
if (is_null($statconfig->getValue('cron_tag', NULL))) return; if (is_null($statconfig->getValue('cron_tag', NULL))) return;
if ($statconfig->getValue('cron_tag', NULL) !== $croninfo['tag']) return; if ($statconfig->getValue('cron_tag', NULL) !== $croninfo['tag']) return;
require_once(SimpleSAML_Module::getModuleDir('statistics') . '/extlibs/loganalyzer.php'); try {
require_once(SimpleSAML_Module::getModuleDir('statistics') . '/extlibs/loganalyzer.php');
$croninfo['summary'][] = 'Loganalyzer did run'; } catch (Exception $e) {
$croninfo['summary'][] = 'Loganalyzer threw exception: ' . $e->getMessage();
}
} }
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment