@cryptotaxi247 / netdata-1 / commits / 6f2c3b20d

Change logging to debug (#17983)

Change to debug

Stelios Fragkakis committed Jun 20, 2024 at 23:34 UTC 6f2c3b20dc94374e4f6e7159ee3b1c8158755a76
1 file changed +2 -2
src/libnetdata/libnetdata.c
+2 -2
@@ -1736,7 +1736,7 @@ void for_each_open_fd(OPEN_FD_ACTION action, OPEN_FD_EXCLUDE excluded_fds){
1736 if(!(excluded_fds & OPEN_FD_EXCLUDE_STDERR)) (void)close(STDERR_FILENO);
1737 #if defined(HAVE_CLOSE_RANGE)
1738 if(close_range(STDERR_FILENO + 1, ~0U, 0) == 0) return;
1739 - netdata_log_error("close_range() failed, will try to close fds one by one");
1739 + nd_log(NDLS_DAEMON, NDLP_DEBUG, "close_range() failed, will try to close fds one by one");
1740 #endif
1741 break;
1742 case OPEN_FD_ACTION_FD_CLOEXEC:
@@ -1745,7 +1745,7 @@ void for_each_open_fd(OPEN_FD_ACTION action, OPEN_FD_EXCLUDE excluded_fds){
1745 if(!(excluded_fds & OPEN_FD_EXCLUDE_STDERR)) (void)fcntl(STDERR_FILENO, F_SETFD, FD_CLOEXEC);
1746 #if defined(HAVE_CLOSE_RANGE) && defined(CLOSE_RANGE_CLOEXEC) // Linux >= 5.11, FreeBSD >= 13.1
1747 if(close_range(STDERR_FILENO + 1, ~0U, CLOSE_RANGE_CLOEXEC) == 0) return;
1748 - netdata_log_error("close_range() failed, will try to mark fds for closing one by one");
1748 + nd_log(NDLS_DAEMON, NDLP_DEBUG, "close_range() failed, will try to mark fds for closing one by one");
1749 #endif
1750 break;
1751 default: