summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-01-20 09:25:44 +0000
committerDries Buytaert <dries@buytaert.net>2001-01-20 09:25:44 +0000
commit53b92a614a9e30b693760b8299342f9bfb01320b (patch)
treeb523aa71364dc3c54e446b39dbe73b3ee5aee440
parent312c625cd77b06ba97d7e768758959f30eee7aec (diff)
downloadbrdo-53b92a614a9e30b693760b8299342f9bfb01320b.tar.gz
brdo-53b92a614a9e30b693760b8299342f9bfb01320b.tar.bz2
- by default, keep the watchdog for one week rather then two weeks
(http://drop.org/admin.php?op=watchdog is gets way to lengthy)
-rw-r--r--includes/watchdog.inc2
1 files changed, 1 insertions, 1 deletions
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");
}