From: Ben Pfaff Date: Tue, 7 Apr 2009 19:50:40 +0000 (-0700) Subject: vlog: Improve log message when rate-limiting. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf5819d87ad262620feb06a45ce2bbf3aeee2df;p=openvswitch 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). --- 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; }