2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

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>
This commit is contained in:
Ben Pfaff
2012-08-20 10:52:26 -07:00
parent 3d6c7773c0
commit 692bf61aa9

View 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;
}