From 40f35e8217e2d77205c013cfdd85fd5198c51b93 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Fri, 23 Aug 2013 18:12:37 +0100 Subject: In QueryLoggingSolver call flush() on std::ofstream so that queries get correctly logged if an assertion failure is hit later on. --- lib/Solver/QueryLoggingSolver.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/Solver/QueryLoggingSolver.cpp b/lib/Solver/QueryLoggingSolver.cpp index e7187fc3..f2e38182 100644 --- a/lib/Solver/QueryLoggingSolver.cpp +++ b/lib/Solver/QueryLoggingSolver.cpp @@ -74,6 +74,7 @@ void QueryLoggingSolver::flushBuffer() { // we do additional check here to log only timeouts in case // user specified negative value for minQueryTimeToLog param os << logBuffer.str(); + os.flush(); } } -- cgit 1.4.1