Don't access std::cout from Position::print()
[stockfish] / src / search.cpp
index 55d815c4b5530359e4d7dbf1269116cd7497138e..c80a064dfde82ba15f1eb98550d9eda5ebf11107 100644 (file)
@@ -218,7 +218,7 @@ void Search::think() {
   if (Options["Use Search Log"])
   {
       Log log(Options["Search Log Filename"]);
-      log << "\nSearching: "  << RootPos.to_fen()
+      log << "\nSearching: "  << RootPos.fen()
           << "\ninfinite: "   << Limits.infinite
           << " ponder: "      << Limits.ponder
           << " time: "        << Limits.time[RootColor]