From: Ben Pfaff Date: Mon, 20 Aug 2012 17:52:26 +0000 (-0700) Subject: poll-loop: Reduce high-CPU log messages from WARN to INFO. X-Git-Tag: sliver-openvswitch-1.10.90-1~11^2~58 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=692bf61aa9294b50e5891e24dcc9f5d90b6f12cd;p=sliver-openvswitch.git poll-loop: Reduce high-CPU log messages from WARN to INFO. These can happen occasionally in normal circumstances. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/poll-loop.c b/lib/poll-loop.c index fca1dfa46..985530683 100644 --- a/lib/poll-loop.c +++ b/lib/poll-loop.c @@ -165,8 +165,8 @@ log_wakeup(const char *where, const struct pollfd *pollfd, int timeout) cpu_usage = get_cpu_usage(); if (VLOG_IS_DBG_ENABLED()) { level = VLL_DBG; - } else if (cpu_usage > 50 && !VLOG_DROP_WARN(&rl)) { - level = VLL_WARN; + } else if (cpu_usage > 50 && !VLOG_DROP_INFO(&rl)) { + level = VLL_INFO; } else { return; }