diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2024-06-20 23:34:30 +0300 |
---|---|---|
committer | Austin S. Hemmelgarn <ahferroin7@gmail.com> | 2024-06-21 08:33:46 -0400 |
commit | f1ab8644ae46fa52778587433fb1428e9acbbaea (patch) | |
tree | c52f396dd78a79b9163f20f0e836a84d64c534d8 | |
parent | 280bce69c294b81c7baf6ddf3b8043882be4197c (diff) |
Change logging to debug (#17983)
Change to debug
(cherry picked from commit 6f2c3b20dc94374e4f6e7159ee3b1c8158755a76)
-rw-r--r-- | src/libnetdata/libnetdata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnetdata/libnetdata.c b/src/libnetdata/libnetdata.c index 6073825f20..909bb71d0e 100644 --- a/src/libnetdata/libnetdata.c +++ b/src/libnetdata/libnetdata.c @@ -1736,7 +1736,7 @@ void for_each_open_fd(OPEN_FD_ACTION action, OPEN_FD_EXCLUDE excluded_fds){ if(!(excluded_fds & OPEN_FD_EXCLUDE_STDERR)) (void)close(STDERR_FILENO); #if defined(HAVE_CLOSE_RANGE) if(close_range(STDERR_FILENO + 1, ~0U, 0) == 0) return; - netdata_log_error("close_range() failed, will try to close fds one by one"); + nd_log(NDLS_DAEMON, NDLP_DEBUG, "close_range() failed, will try to close fds one by one"); #endif break; case OPEN_FD_ACTION_FD_CLOEXEC: @@ -1745,7 +1745,7 @@ void for_each_open_fd(OPEN_FD_ACTION action, OPEN_FD_EXCLUDE excluded_fds){ if(!(excluded_fds & OPEN_FD_EXCLUDE_STDERR)) (void)fcntl(STDERR_FILENO, F_SETFD, FD_CLOEXEC); #if defined(HAVE_CLOSE_RANGE) && defined(CLOSE_RANGE_CLOEXEC) // Linux >= 5.11, FreeBSD >= 13.1 if(close_range(STDERR_FILENO + 1, ~0U, CLOSE_RANGE_CLOEXEC) == 0) return; - netdata_log_error("close_range() failed, will try to mark fds for closing one by one"); + nd_log(NDLS_DAEMON, NDLP_DEBUG, "close_range() failed, will try to mark fds for closing one by one"); #endif break; default: |