loolwsd: LOG_CHECK to replace assertion when logging suffices

Change-Id: I077c6394579f432c0aa9da053d20ccb9c6d31907
Reviewed-on: https://gerrit.libreoffice.org/31934
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian
2016-12-12 23:31:00 -05:00
committed by Ashod Nakashian
parent aa1d721444
commit 4bc318fb88
2 changed files with 4 additions and 7 deletions

View File

@ -180,6 +180,8 @@ namespace Log
#define LOG_FTL(X) if (Log::fatalEnabled()) { LOG_BODY("FTL", X); Log::logger().fatal(oss_.str()); }
#define LOG_SFL(X) if (Log::errorEnabled()) { LOG_BODY("FTL", X << " (errno: " << std::strerror(errno) << ")"); Log::logger().fatal(oss_.str()); }
#define LOG_CHECK(X) if (!(X)) { LOG_ERR("Check failed. Expected (" #X ")."); }
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */