From 53b92a614a9e30b693760b8299342f9bfb01320b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Jan 2001 09:25:44 +0000 Subject: - by default, keep the watchdog for one week rather then two weeks (http://drop.org/admin.php?op=watchdog is gets way to lengthy) --- includes/watchdog.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/watchdog.inc b/includes/watchdog.inc index 4de8210db..97c6ca063 100644 --- a/includes/watchdog.inc +++ b/includes/watchdog.inc @@ -24,7 +24,7 @@ function watchdog($id, $message) { db_query("INSERT INTO watchdog (level, timestamp, user, message, location, hostname) VALUES ('". $watchdog[$id][0] ."', '". time() ."', '". check_input($user->id) ."', '". check_input($message) ."', '". check_input(getenv("REQUEST_URI")) ."', '". check_input(getenv("REMOTE_ADDR")) ."')"); } -function watchdog_clean($history = "604800") { +function watchdog_clean($history = 302400) { $timestamp = time() - $history; db_query("DELETE FROM watchdog WHERE timestamp < $timestamp"); } -- cgit v1.2.3