summaryrefslogtreecommitdiff
blob: 694fc12cd413ae0628d00af15339b31245dc56b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -Nuar munin-1.3.4.orig/server/munin-graph.in munin-1.3.4/server/munin-graph.in
--- munin-1.3.4.orig/server/munin-graph.in	2009-08-26 23:10:11.942546516 +0000
+++ munin-1.3.4/server/munin-graph.in	2009-08-26 23:37:53.639047143 +0000
@@ -476,12 +476,12 @@
     my $graphable = munin_get ($service, "graphable", 0);;
     if (!$graphable) {
 	foreach my $field (@{munin_get_field_order ($service)}) {
-	    logger ("DEBUG: single_value: Checking field \"$field\".");
+	    logger ("DEBUG: single_value: Checking field \"$field\".") if $DEBUG;
 	    $graphable++ if munin_draw_field ($service->{$field});
 	}
 	munin_set_var_loc ($service, ["graphable"], $graphable);
     }
-    logger ("Debug: service ". join (' :: ', @{munin_get_node_loc ($service)}) ." has $graphable elements.");
+    logger ("Debug: service ". join (' :: ', @{munin_get_node_loc ($service)}) ." has $graphable elements.") if $DEBUG;
     return ($graphable == 1);
 }