]> arthur.barton.de Git - netdata.git/blobdiff - src/log.c
move core iteration point in the middle of the second, to give some tollerance to...
[netdata.git] / src / log.c
index bf2ad6b381fb6531f0f436ebe86411451c1e9074..dc00834236bf982dac79a5232614fa36260a5505 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -125,7 +125,11 @@ int error_log_limit(int reset) {
 
     // prevent all logs if the errors per period is 0
     if(error_log_errors_per_period == 0)
+#ifdef NETDATA_INTERNAL_CHECKS
+        return 0;
+#else
         return 1;
+#endif
 
     time_t now = time(NULL);
     if(!start) start = now;
@@ -185,7 +189,11 @@ int error_log_limit(int reset) {
         prevented++;
 
         // prevent logging this error
+#ifdef NETDATA_INTERNAL_CHECKS
+        return 0;
+#else
         return 1;
+#endif
     }
 
     return 0;