Merge pull request #14449 from kpayson64/less_logging

Lower debug logging on epollex
pull/14469/head
kpayson64 7 years ago committed by GitHub
commit 3156f1858a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/core/lib/iomgr/is_epollexclusive_available.cc

@ -37,7 +37,7 @@ bool grpc_is_epollexclusive_available(void) {
int fd = epoll_create1(EPOLL_CLOEXEC); int fd = epoll_create1(EPOLL_CLOEXEC);
if (fd < 0) { if (fd < 0) {
if (!logged_why_not) { if (!logged_why_not) {
gpr_log(GPR_ERROR, gpr_log(GPR_DEBUG,
"epoll_create1 failed with error: %d. Not using epollex polling " "epoll_create1 failed with error: %d. Not using epollex polling "
"engine.", "engine.",
fd); fd);
@ -48,7 +48,7 @@ bool grpc_is_epollexclusive_available(void) {
int evfd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); int evfd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
if (evfd < 0) { if (evfd < 0) {
if (!logged_why_not) { if (!logged_why_not) {
gpr_log(GPR_ERROR, gpr_log(GPR_DEBUG,
"eventfd failed with error: %d. Not using epollex polling " "eventfd failed with error: %d. Not using epollex polling "
"engine.", "engine.",
fd); fd);
@ -80,7 +80,7 @@ bool grpc_is_epollexclusive_available(void) {
} }
} else { } else {
if (!logged_why_not) { if (!logged_why_not) {
gpr_log(GPR_ERROR, gpr_log(GPR_DEBUG,
"epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is " "epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is "
"evidence of no EPOLLEXCLUSIVE support. Not using " "evidence of no EPOLLEXCLUSIVE support. Not using "
"epollex polling engine."); "epollex polling engine.");

Loading…
Cancel
Save