From ebf5819d87ad262620feb06a45ce2bbf3aeee2df Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 7 Apr 2009 12:50:40 -0700 Subject: [PATCH] vlog: Improve log message when rate-limiting. OpenFlow works with many different kinds of messages, so it can be helpful to state that specifically *log* messages were dropped. Thanks to Pete for pointing this out (see bug #1166). --- lib/vlog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vlog.c b/lib/vlog.c index fc5f9a10..64dc1966 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -659,7 +659,8 @@ vlog_should_drop(enum vlog_module module, enum vlog_level level, if (rl->n_dropped) { vlog(module, level, - "Dropped %u messages in last %u seconds due to excessive rate", + "Dropped %u log messages in last %u seconds " + "due to excessive rate", rl->n_dropped, (unsigned int) (time_now() - rl->first_dropped)); rl->n_dropped = 0; } -- 2.30.2