diff options
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) |