Skip to content

Commit

Permalink
Log fatal errors also to stderr
Browse files Browse the repository at this point in the history
Change-Id: I5e6429ab007d13a2506c375923049b91c80ffba0
Reviewed-on: https://gerrit.libreoffice.org/72722
Reviewed-by: Samuel Mehrbrodt <[email protected]>
Tested-by: Samuel Mehrbrodt <[email protected]>
  • Loading branch information
smehrbrodt committed Jun 4, 2019
1 parent e4b39f6 commit b40cf51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/Log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

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

0 comments on commit b40cf51

Please sign in to comment.