poll-loop: Reduce high-CPU log messages from WARN to INFO.
authorBen Pfaff <blp@nicira.com>
Mon, 20 Aug 2012 17:52:26 +0000 (10:52 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 11 Feb 2013 21:22:17 +0000 (13:22 -0800)
These can happen occasionally in normal circumstances.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/poll-loop.c

index fca1dfa..9855306 100644 (file)
@@ -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;
     }