diff options
author | Ben Pfaff <blp@nicira.com> | 2012-08-20 10:52:26 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-02-11 13:22:17 -0800 |
commit | 692bf61aa9294b50e5891e24dcc9f5d90b6f12cd (patch) | |
tree | 4bab059d8ec131f6bdaafa44f6d7886c7d8dce22 /lib/poll-loop.c | |
parent | 3d6c7773c0ebca6fc6cadaed351331d4aed6fc9b (diff) |
poll-loop: Reduce high-CPU log messages from WARN to INFO.
These can happen occasionally in normal circumstances.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/poll-loop.c')
-rw-r--r-- | 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 fca1dfa4..98553068 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; } |