Skip to content

Commit 6bf4184

Browse files
committed
API Logger - ensure output is flushed
1 parent 7508edf commit 6bf4184

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/api/include/api/logger.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ class Log
5757
{
5858
if (opened)
5959
{
60-
out << std::endl;
60+
std::cout << out.str() << std::endl;
61+
6162
#ifdef WIN32
63+
out << std::endl;
6264
OutputDebugStringA(out.str().c_str());
6365
#endif
64-
std::cout << out.str();
66+
6567
}
6668
opened = false;
6769
}

0 commit comments

Comments
 (0)