|
|
| Author |
Message |
browniebraun Cacti User
Joined: 13 Jun 2006 Posts: 329 Location: Cologne, Germany
|
Posted: Thu Nov 29, 2007 3:46 am Post subject: [SOLVED] Weathermap v0.94 is a little bit to chatty |
|
|
Hi Howie!
We (Frizz and me) have made an upgrade from v0.6 to v0.94 on our new cacti server. Everything works fine, but weathermaps writes many, many logs (~100 Lines) with every polling cycle although "Quiet logging" is set to "Quiet". The poller logging level is set to "Low...", poller warnings and errors are enabled.
Any hints?
Best regards
-Andreas-
| Description: |
|
| Filesize: |
19.82 KB |
| Viewed: |
852 Time(s) |

|
|
|
| Back to top |
|
 |
browniebraun Cacti User
Joined: 13 Jun 2006 Posts: 329 Location: Cologne, Germany
|
Posted: Thu Nov 29, 2007 4:16 am Post subject: |
|
|
Okay,
I modified function "weathermap_poller_output" to get it more silent.
Added at line 314:
| Code: |
$quietlogging = read_config_option("weathermap_quiet_logging");
if($quietlogging==0)
cacti_log("*********** ...
|
... and at line 372
| Code: |
if($quietlogging==0)
cacti_log("poller_output done\n*** ...
|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Thu Nov 29, 2007 9:25 am Post subject: |
|
|
Yep - forgot to remove some debugging code.
This is already fixed in 0.941 (coming in next few days to address a couple of issues)
|
|
| Back to top |
|
 |
llow Cacti User
Joined: 05 Oct 2007 Posts: 88
|
Posted: Mon Dec 03, 2007 2:25 pm Post subject: |
|
|
Should probably add
if (read_config_option("log_verbosity") == POLLER_VERBOSITY_MEDIUM) in setup.php before cacti_log for "Got one" near line 327.
|
|
| Back to top |
|
 |
|