]> git.pld-linux.org Git - packages/cacti.git/blob - cacti-log-verbosity.patch
- rel 14; one more rrdtool 1.3.x fix
[packages/cacti.git] / cacti-log-verbosity.patch
1 --- cacti-0.8.7b/poller.php~    2008-10-05 16:58:33.000000000 +0300
2 +++ cacti-0.8.7b/poller.php     2008-10-05 17:45:53.825952709 +0300
3 @@ -312,7 +312,9 @@
4                                         $num_polling_items,
5                                         $rrds_processed);
6  
7 -                               cacti_log("STATS: " . $cacti_stats ,true,"SYSTEM");
8 +                               if (read_config_option('log_verbosity') > POLLER_VERBOSITY_NONE) {
9 +                                       cacti_log("STATS: " . $cacti_stats ,true,"SYSTEM");
10 +                               }
11  
12                                 /* insert poller stats into the settings table */
13                                 db_execute("replace into settings (name,value) values ('stats_poller','$cacti_stats')");
14 @@ -352,7 +354,9 @@
15                                                 $num_polling_items,
16                                                 $rrds_processed);
17  
18 -                                       cacti_log("STATS: " . $cacti_stats ,true,"SYSTEM");
19 +                                       if (read_config_option('log_verbosity') > POLLER_VERBOSITY_NONE) {
20 +                                               cacti_log("STATS: " . $cacti_stats ,true,"SYSTEM");
21 +                                       }
22  
23                                         /* insert poller stats into the settings table */
24                                         db_execute("replace into settings (name,value) values ('stats_poller','$cacti_stats')");
This page took 0.068497 seconds and 3 git commands to generate.