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

Storing results file in cron hook... forgot this yesterday..

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1324 44740490-163a-0410-bde0-09ae8108e29a
parent 71dba98d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,11 @@ function statistics_hook_cron(&$croninfo) {
try {
$aggregator = new sspmod_statistics_Aggregator();
$results = $aggregator->aggregate();
if (empty($results)) {
$croninfo['summary'][] = 'Output from statistics aggregator was empty.';
} else {
$aggregator->store($results);
}
} catch (Exception $e) {
$croninfo['summary'][] = 'Loganalyzer threw exception: ' . $e->getMessage();
}
......
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