From 19a5b700946a3082596f67b5d65a8f98b211dad9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Jun 2010 15:11:07 +0000 Subject: [PATCH] Some debugging changes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18894 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc index e90d0c4db..9fce8c768 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc @@ -171,11 +171,11 @@ class rsyslog extends plugin } if($link){ - $query = "SELECT * FROM SystemEvents WHERE Message like '%GOsa%' ORDER BY ID LIMIT 50"; + $query = "SELECT * FROM SystemEvents WHERE Message like '%GOsa%' ORDER BY ID DESC LIMIT 50"; $res = mysql_query($query, $link); if($res){ while($attrs = mysql_fetch_assoc($res)){ - $result[] = $attrs; + $result[] = $attrs; } } } @@ -194,7 +194,8 @@ class rsyslog extends plugin ' '; foreach($result as $entry){ - $message = $entry['FromHost'].": ".$entry['Message']; + + $message = $entry['ReceivedAt']." - ".htmlentities($entry['FromHost'].": ".$entry['Message']); $source .= " {$message} -- 2.30.2