From: hickert Date: Wed, 30 Jun 2010 15:11:07 +0000 (+0000) Subject: Some debugging changes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19a5b700946a3082596f67b5d65a8f98b211dad9;p=gosa.git Some debugging changes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18894 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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}