@cryptotaxi247 / netdata-1 / commits / e7801f7a7

Fix error limit to respect the log every (#16469)

Set last_logged time

Stelios Fragkakis committed Nov 24, 2023 at 19:31 UTC e7801f7a72bb2fbea20e865a84afda8c4871f3fb
1 file changed +2
libnetdata/log/log.c
+2
@@ -2226,6 +2226,8 @@ void netdata_logger_with_limit(ERROR_LIMIT *erl, ND_LOG_SOURCES source, ND_LOG_F
2226 source == NDLS_DAEMON || source == NDLS_COLLECTORS,
2227 saved_errno, fmt, args);
2228 va_end(args);
2229 + erl->last_logged = now;
2230 + erl->count = 0;
2231 }
2232
2233 void netdata_logger_fatal( const char *file, const char *function, const unsigned long line, const char *fmt, ... ) {