comparison src/scanner.cpp @ 86:c1280cd3e248

add multiple debug syslog levels, remove duplicate dnsbl definitions
author carl
date Tue, 19 Jul 2005 22:47:15 -0700
parents 81f1e400e8ab
children aa07452e641b
comparison
equal deleted inserted replaced
85:7e4a90e5f213 86:c1280cd3e248
1161 } 1161 }
1162 void recorder::new_tag(char *tag) { 1162 void recorder::new_tag(char *tag) {
1163 string_set::iterator i = html_tags->find(tag); 1163 string_set::iterator i = html_tags->find(tag);
1164 if (i == html_tags->end()) { 1164 if (i == html_tags->end()) {
1165 bad_html_tags++; 1165 bad_html_tags++;
1166 if (debug_syslog && (bad_html_tags < 10)) { 1166 if ((debug_syslog > 2) && (bad_html_tags < 10)) {
1167 // only log the first 10 bad tags 1167 // only log the first 10 bad tags
1168 char buf[200]; 1168 char buf[200];
1169 snprintf(buf, sizeof(buf), "bad html tag %s", tag); 1169 snprintf(buf, sizeof(buf), "bad html tag %s", tag);
1170 my_syslog(priv, buf); 1170 my_syslog(priv, buf);
1171 } 1171 }