diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-02-22 06:18:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-02-22 06:18:21 +0000 |
commit | 5c415f739bcdc183e99f76e55509ab9485fb181e (patch) | |
tree | e20b1b222432c9b76f0b729416a662a3217f430f /modules/throttle | |
parent | 18160f02e8bf9da9088ef54ee17472d1ad1afbc4 (diff) | |
download | brdo-5c415f739bcdc183e99f76e55509ab9485fb181e.tar.gz brdo-5c415f739bcdc183e99f76e55509ab9485fb181e.tar.bz2 |
- Slightly improved the throttle watchdog messages.
Diffstat (limited to 'modules/throttle')
-rw-r--r-- | modules/throttle/throttle.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module index e2bddf93a..dcf2e00d1 100644 --- a/modules/throttle/throttle.module +++ b/modules/throttle/throttle.module @@ -166,14 +166,16 @@ function _throttle_update($hits) { } } + $type = $throttle_new > 2 ? 'warning' : 'regular'; + // log the change if ($throttle_new < $throttle) { variable_set('throttle_level', $throttle - 1); - watchdog('regular', "message: '$hits' hits in past minute; throttle decreased to level ". ($throttle - 1)); + watchdog($type, "throttle: '$hits' hits in past minute; throttle decreased to level ". ($throttle - 1)); } if ($throttle_new > $throttle) { variable_set('throttle_level', $throttle + 1); - watchdog('warning', "warning: '$hits' hits in past minute; throttle increased to level ". ($throttle + 1)); + watchdog($type, "throttle: '$hits' hits in past minute; throttle increased to level ". ($throttle + 1)); } } |