From db92d73b6eb8ed3b0d40a9deaf50c3ad680dd872 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 13 Jun 2001 21:37:19 +0000 Subject: - Improved watchdog and submission throttle: removed redundant code, streamlined the existing code, added new watchdog type called "httpd" for Apache errors. The latter should make it easier to add watchdog filters later on. - Clarified some watchdog messages. --- modules/watchdog.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/watchdog.module') diff --git a/modules/watchdog.module b/modules/watchdog.module index 9cf2ec908..e9ad84e87 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -18,15 +18,15 @@ function watchdog_cron() { } function watchdog_overview() { - $colors = array(message => "#FFFFFF", special => "#836FFF", warning => "#FFAA22", error => "#EE2C2C"); + $colors = array(message => "#FFFFFF", special => "#836FFF", warning => "#FFAA22", httpd => "#77BB77", error => "#EE2C2C"); $result = db_query("SELECT w.*, u.userid FROM watchdog w LEFT JOIN users u ON w.user = u.id ORDER BY timestamp DESC LIMIT 1000"); $output .= "\n"; - $output .= " \n"; + $output .= " \n"; while ($watchdog = db_fetch_object($result)) { if ($color = $colors[$watchdog->type]) { - $output .= " \n"; + $output .= " \n"; } } $output .= "
datetypemessageuseroperations
datemessageuseroperations
". format_date($watchdog->timestamp) ."$watchdog->link". substr(check_output($watchdog->message), 0, 50) ."". format_username($watchdog->userid) ."id\">details
". format_date($watchdog->timestamp) ."". substr(check_output($watchdog->message), 0, 50) ."". format_username($watchdog->userid) ."id\">details
\n"; -- cgit v1.2.3