diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-02 02:14:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-02 02:16:45 +0300 |
commit | 4d31830cd1852f017fdaa5f4047339204cb62c71 (patch) | |
tree | 7ab1536afb38ede18e7088ada68e7a78db3a73ba | |
parent | 8d4d9fea737524b05cea08b21549aec84eeb4ef8 (diff) | |
download | manaverse-4d31830cd1852f017fdaa5f4047339204cb62c71.tar.gz manaverse-4d31830cd1852f017fdaa5f4047339204cb62c71.tar.bz2 manaverse-4d31830cd1852f017fdaa5f4047339204cb62c71.tar.xz manaverse-4d31830cd1852f017fdaa5f4047339204cb62c71.zip |
Flush log writes in nacl after each log write.
-rw-r--r-- | src/logger.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index c1beca132..5e0485803 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -81,6 +81,9 @@ Logger::Logger() : mDebugLog(false), mReportUnimplimented(false) { +#if defined __native_client__ && defined(NACL_LOG) + std::cout.setf(std::ios_base::unitbuf); +#endif } Logger::~Logger() |