From 1278810e2492fd039ace19e3cca626f16ca93193 Mon Sep 17 00:00:00 2001
From: Christian Wulf <chw@informatik.uni-kiel.de>
Date: Wed, 4 Feb 2015 13:44:40 +0100
Subject: [PATCH] added surrounding log block

---
 src/main/java/teetime/framework/AbstractInterThreadPipe.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/teetime/framework/AbstractInterThreadPipe.java b/src/main/java/teetime/framework/AbstractInterThreadPipe.java
index d359cf92..0e7513c9 100644
--- a/src/main/java/teetime/framework/AbstractInterThreadPipe.java
+++ b/src/main/java/teetime/framework/AbstractInterThreadPipe.java
@@ -26,7 +26,7 @@ public abstract class AbstractInterThreadPipe extends AbstractPipe {
 		this.signalQueue.offer(signal);
 
 		Thread owningThread = cachedTargetStage.getOwningThread();
-		if (owningThread == null) {
+		if (owningThread == null && LOGGER.isWarnEnabled()) {
 			LOGGER.warn("owningThread of " + cachedTargetStage + " is null.");
 		}
 		if (null != owningThread && isThreadWaiting(owningThread)) { // FIXME remove the null check for performance
-- 
GitLab