diff --git a/VectoCore/VectoCore/Utils/SearchAlgorithm.cs b/VectoCore/VectoCore/Utils/SearchAlgorithm.cs
index 23338fa88a3c2370a75cd60b5e3f8e7295039b45..3fe6bfa252bab557697e29a820c4f82840ec5827 100644
--- a/VectoCore/VectoCore/Utils/SearchAlgorithm.cs
+++ b/VectoCore/VectoCore/Utils/SearchAlgorithm.cs
@@ -228,7 +228,7 @@ namespace TUGraz.VectoCore.Utils
 						LogManager.DisableLogging();
 						AppendDebug(debug);
 						//iterationCount += count;
-						
+
 						//return x1.SI<T>();
 						throw new VectoSearchAbortedException("InterpolateLinearSearch");
 					}
@@ -255,9 +255,10 @@ namespace TUGraz.VectoCore.Utils
 			}
 
 			log.Debug("InterpolateSearch could not find an operating point.");
-			log.Error("Exceeded max iterations when searching for operating point!");
+#if DEBUG
+			log.Error("InterpolateSearch exceeded max iterations when searching for operating point!");
 			log.Error("debug: {0}", debug);
-
+#endif
 			WriteSearch(debug, "InterpolateSearch.csv");
 			throw new VectoSearchFailedException("Failed to find operating point! points: {0}", debug);
 		}