From 8d089dd8d286af3df63c0692602aea3600f237d1 Mon Sep 17 00:00:00 2001
From: Christian Wulf <chw@informatik.uni-kiel.de>
Date: Fri, 24 Jul 2015 05:48:57 +0200
Subject: [PATCH] fixed logging bug

---
 .../java/teetime/framework/ExecutionInstantiation.java   | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/java/teetime/framework/ExecutionInstantiation.java b/src/main/java/teetime/framework/ExecutionInstantiation.java
index 63a57c3d..a6813eb7 100644
--- a/src/main/java/teetime/framework/ExecutionInstantiation.java
+++ b/src/main/java/teetime/framework/ExecutionInstantiation.java
@@ -94,13 +94,16 @@ class ExecutionInstantiation {
 		int color = DEFAULT_COLOR;
 		Map<Stage, Integer> colors = new HashMap<Stage, Integer>();
 		Set<Stage> threadableStageJobs = configuration.getThreadableStages().keySet();
-		Integer createdConnections = 0;
+		int numCreatedConnections = 0;
 		for (Stage threadableStage : threadableStageJobs) {
 			color++;
 			colors.put(threadableStage, color);
-			createdConnections = colorAndConnectStages(color, colors, threadableStage, configuration);
+			numCreatedConnections += colorAndConnectStages(color, colors, threadableStage, configuration);
+		}
+
+		if (LOGGER.isDebugEnabled()) {
+			LOGGER.debug("Created " + numCreatedConnections + " connections");
 		}
-		LOGGER.debug("Created " + createdConnections + " connections");
 	}
 
 }
-- 
GitLab