diff --git a/modules/statistics/hooks/hook_cron.php b/modules/statistics/hooks/hook_cron.php index 1c4d43adc35c507f30e491efe1cf0ebf64292398..c97141febfdc899be29e065750f3dc86168aec75 100644 --- a/modules/statistics/hooks/hook_cron.php +++ b/modules/statistics/hooks/hook_cron.php @@ -23,12 +23,14 @@ function statistics_hook_cron(&$croninfo) { $aggregator = new sspmod_statistics_Aggregator(); $results = $aggregator->aggregate(); if (empty($results)) { - $croninfo['summary'][] = 'Output from statistics aggregator was empty.'; + SimpleSAML_Logger::notice('Output from statistics aggregator was empty.'); } else { $aggregator->store($results); } } catch (Exception $e) { - $croninfo['summary'][] = 'Loganalyzer threw exception: ' . $e->getMessage(); + $message = 'Loganalyzer threw exception: ' . $e->getMessage(); + SimpleSAML_Logger::warning($message); + $croninfo['summary'][] = $message; } } ?> \ No newline at end of file