summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-05-05 18:32:49 +0200
committerJan Holesovsky <kendy@collabora.com>2014-05-06 03:07:49 +0200
commit68e5207306dad9ce4cdf95283f4b2c5e32f131e2 (patch)
treef0687708d5574c3773324e217752b0ba053e9a03 /sal
parentd09d75167d77adcc8538c5cc5d8fe6bac6091ca1 (diff)
sal logging: Flush after having written the output.
Makes it possible to see the messages immediately on Windows; otherwise the SAL_DEBUG() etc. is useless as it shows on screen too late. Change-Id: I701922aa4fcacf66d6b044e0badca7ef1f9cac94
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/all/log.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index 056d2a4cd437..aa3105d7b29e 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -240,6 +240,7 @@ void log(
#endif
} else {
std::fputs(s.str().c_str(), stderr);
+ std::fflush(stderr);
}
#endif
}