diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-25 16:58:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-25 16:58:11 +0400 |
commit | 34ae83f0151a3fd31f4c045968defa39a2c40985 (patch) | |
tree | 3bb121336c76d16e3e5257c12a7905af0e04b70f /src/logger.h | |
parent | 4a8c30c78940a9153de23dc4d031273649e93cce (diff) | |
download | rspamd-34ae83f0151a3fd31f4c045968defa39a2c40985.tar.gz rspamd-34ae83f0151a3fd31f4c045968defa39a2c40985.zip |
* Add rspamd_log variable to lua plugins to access logging functions
* Each part in rspamd task now can have parent part
* Check for parts distance only for multipart/alternative subparts
* Do not check attachements even if they are text (but attached as file)
* Do not die if write (2) returned ENOSPACE while doing logging, turn on throttling mode instead (1 write try in a second)
* Add ability to turn on debug for specific symbols
* Add ability to configure dns timeouts and dns retransmits in config file
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h index fe6e0bda5..9b419c8a6 100644 --- a/src/logger.h +++ b/src/logger.h @@ -62,6 +62,15 @@ void rspamd_common_log_function (GLogLevelFlags log_level, const char *function, */ void rspamd_conditional_debug (uint32_t addr, const char *function, const char *fmt, ...) ; +/** + * Temporary turn on debug + */ +void rspamd_log_debug (); + +/** + * Turn off debug + */ +void rspamd_log_nodebug (); /* Typical functions */ |