[ovs-dev] [test log scan v2 2/6] poll-loop: Reduce high-CPU log messages from WARN to INFO.

Ben Pfaff blp at nicira.com
Fri Feb 1 18:48:54 UTC 2013


These can happen occasionally in normal circumstances.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/poll-loop.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/poll-loop.c b/lib/poll-loop.c
index fca1dfa..9855306 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;
     }
-- 
1.7.2.5




More information about the dev mailing list