Log fatal errors also to stderr

Change-Id: I5e6429ab007d13a2506c375923049b91c80ffba0
Reviewed-on: https://gerrit.libreoffice.org/72722
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
Samuel Mehrbrodt
2019-05-22 08:31:59 +02:00
parent e4b39f6811
commit b40cf51181

View File

@ -15,6 +15,7 @@
#include <cstddef> #include <cstddef>
#include <functional> #include <functional>
#include <iostream>
#include <thread> #include <thread>
#include <sstream> #include <sstream>
#include <string> #include <string>
@ -341,6 +342,7 @@ namespace Log
#define LOG_FTL(X) \ #define LOG_FTL(X) \
do \ do \
{ \ { \
std::cerr << X << std::endl; \
auto &log_ = Log::logger(); \ auto &log_ = Log::logger(); \
if (log_.fatal()) \ if (log_.fatal()) \
{ \ { \