diff options
author | Lennart Weller <lhw@ring0.de> | 2016-04-21 12:27:29 +0000 |
---|---|---|
committer | Lennart Weller <lhw@ring0.de> | 2016-04-21 12:27:29 +0000 |
commit | 30b94862648cdbf4f537337d2e2f01c369a9dee9 (patch) | |
tree | f0219dd8bd744fc09899bd0266402e05a4bff854 /src/log.h | |
parent | Imported Upstream version 1.0.0 (diff) | |
download | netdata-30b94862648cdbf4f537337d2e2f01c369a9dee9.tar.xz netdata-30b94862648cdbf4f537337d2e2f01c369a9dee9.zip |
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/log.h')
-rw-r--r--[-rwxr-xr-x] | src/log.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/log.h b/src/log.h index 08f3c4fe..e882af38 100755..100644 --- a/src/log.h +++ b/src/log.h @@ -42,6 +42,12 @@ extern int access_log_syslog; extern int error_log_syslog; extern int output_log_syslog; +extern time_t error_log_throttle_period; +extern unsigned long error_log_errors_per_period; +extern int error_log_limit(int reset); + +#define error_log_limit_reset() do { error_log_limit(1); } while(0) + #define debug(type, args...) do { if(unlikely(!silent && (debug_flags & type))) debug_int(__FILE__, __FUNCTION__, __LINE__, ##args); } while(0) #define info(args...) info_int(__FILE__, __FUNCTION__, __LINE__, ##args) #define infoerr(args...) error_int("INFO", __FILE__, __FUNCTION__, __LINE__, ##args) |