diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-22 01:32:18 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-22 01:32:18 +0300 |
commit | e413f4ee9cd298baab701df31ab4c1cb91c7c4b6 (patch) | |
tree | 46858bef680c8a09b6d1d58a5ca7e3a8cec4e62d /src/html.c | |
parent | a079dac866ac4e166a8d6e40f978af74e8398583 (diff) | |
download | rspamd-e413f4ee9cd298baab701df31ab4c1cb91c7c4b6.tar.gz rspamd-e413f4ee9cd298baab701df31ab4c1cb91c7c4b6.zip |
* Introduce new logging system:
- independent and customizeable buffering
- line buffering
- errors handling support
- custom (ip based) debug
- append function name automaticaly (based on __FUNCTION__)
- add some logic to logs system
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/html.c b/src/html.c index b77e21bf1..654366799 100644 --- a/src/html.c +++ b/src/html.c @@ -757,7 +757,7 @@ add_html_node (struct worker_task *task, memory_pool_t * pool, struct mime_text_ else { new = construct_html_node (pool, tag_text); if (new == NULL) { - msg_debug ("add_html_node: cannot construct HTML node for text '%s'", tag_text); + debug_task ("cannot construct HTML node for text '%s'", tag_text); return -1; } data = new->data; @@ -766,12 +766,12 @@ add_html_node (struct worker_task *task, memory_pool_t * pool, struct mime_text_ } if (data->flags & FL_CLOSING) { if (!*cur_level) { - msg_debug ("add_html_node: bad parent node"); + debug_task ("bad parent node"); return FALSE; } g_node_append (*cur_level, new); if (!check_balance (new, cur_level)) { - msg_debug ("add_html_node: mark part as unbalanced as it has not pairable closing tags"); + debug_task ("mark part as unbalanced as it has not pairable closing tags"); part->is_balanced = FALSE; } } |