From 692bf61aa9294b50e5891e24dcc9f5d90b6f12cd Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 20 Aug 2012 10:52:26 -0700 Subject: [PATCH] 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 --- lib/poll-loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.0