... | ... |
@@ -1,3 +1,10 @@ |
1 |
+/* |
|
2 |
+ * $Id $ |
|
3 |
+ * |
|
4 |
+ * Stats reporting code. It reports through SIG_USR1 and if loaded |
|
5 |
+ * through the SNMP module |
|
6 |
+ */ |
|
7 |
+ |
|
1 | 8 |
#ifdef STATS |
2 | 9 |
#include "stats.h" |
3 | 10 |
#include <stdio.h> |
... | ... |
@@ -297,8 +304,8 @@ int stats_register() |
297 | 304 |
f.new_func = (void*) find_export("snmp_new_handler", 1); |
298 | 305 |
f.free_func = (void*) find_export("snmp_free_handler", 1); |
299 | 306 |
if(!f.reg_func || !f.new_func || !f.free_func) { |
300 |
- LOG(L_WARN, "%s: Couldn't find necessary SNMP functions. Is the " |
|
301 |
- "module loaded?\n", func); |
|
307 |
+ LOG(L_INFO, "%s: Couldn't find SNMP module\n"); |
|
308 |
+ LOG(L_INFO, "%s: Not reporting stats through SNMP\n", func); |
|
302 | 309 |
return 0; |
303 | 310 |
} |
304 | 311 |
|