diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-02-26 14:23:54 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-02-26 14:23:54 +0100 |
commit | cb5303927188de9504a6e18aedec299956a22b6f (patch) | |
tree | 0d8ac146c9d84b85e382fb994d9e10688c2e3e36 /filter | |
parent | a9dc5e1ef2fd08c53bceb54690f6dac83ddf0c81 (diff) | |
download | bird-cb5303927188de9504a6e18aedec299956a22b6f.tar bird-cb5303927188de9504a6e18aedec299956a22b6f.zip |
Rate limit for most abundant log messages
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c index 9e75f17..785a087 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -281,8 +281,10 @@ rta_cow(void) } } +static struct rate_limit rl_runtime_err; + #define runtime(x) do { \ - log( L_ERR "filters, line %d: %s", what->lineno, x); \ + log_rl(&rl_runtime_err, L_ERR "filters, line %d: %s", what->lineno, x); \ res.type = T_RETURN; \ res.val.i = F_ERROR; \ return res; \ |