Browse code

Remove debugging statements from stats code

Shawn Webb authored on 2014/02/04 01:51:13
Showing 2 changed files
... ...
@@ -155,8 +155,6 @@ struct device *get_devices(void)
155 155
     /* This is the Linux version of getting the MAC addresses */
156 156
 #if defined(SIOCGIFHWADDR)
157 157
     for (i=0; i < ndevices; i++) {
158
-        cli_warnmsg("devices[%lu]: %s\n", i, devices[i].name);
159
-
160 158
         if (!(devices[i].name))
161 159
             continue;
162 160
 
... ...
@@ -31,7 +31,7 @@
31 31
 #include "libclamav/hostid.h"
32 32
 #include "libclamav/www.h"
33 33
 
34
-#define DEBUG_STATS 1
34
+#define DEBUG_STATS 0
35 35
 
36 36
 static cli_flagged_sample_t *find_sample(cli_intel_t *intel, const char *virname, const unsigned char *md5, size_t size, stats_section_t *sections);
37 37
 void free_sample(cli_flagged_sample_t *sample);
... ...
@@ -229,8 +229,6 @@ void clamav_stats_add_sample(const char *virname, const unsigned char *md5, size
229 229
         }
230 230
     }
231 231
 
232
-    cli_warnmsg("Added %s to the stats cache\n", (virname != NULL) ? virname: "[unknown]");
233
-
234 232
     sample->hits++;
235 233
 
236 234
 end:
... ...
@@ -355,7 +353,6 @@ void clamav_stats_submit(struct cl_engine *engine, void *cbdata)
355 355
     }
356 356
 
357 357
     if (json) {
358
-        cli_warnmsg("====\tSUBMITTING STATS\t====\n");
359 358
         submit_post(STATS_HOST, STATS_PORT, "PUT", "/clamav/1/submit/stats", json);
360 359
         free(json);
361 360
     }