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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user