mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-01 16:04:55 +00:00
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:
@ -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()) \
|
||||||
{ \
|
{ \
|
||||||
|
Reference in New Issue
Block a user