[Libreoffice-commits] online.git: common/Log.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sun Jan 1 04:20:36 UTC 2017


 common/Log.hpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 92bbe0b774778c27a6525700026f424c148a0b26
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Thu Dec 22 19:32:46 2016 -0500

    wsd: log bools as text
    
    Change-Id: I0d520671704881bf1aaeb090ce452be74e43fd0c
    Reviewed-on: https://gerrit.libreoffice.org/32561
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/common/Log.hpp b/common/Log.hpp
index f4ba714..4613877 100644
--- a/common/Log.hpp
+++ b/common/Log.hpp
@@ -170,7 +170,7 @@ namespace Log
     }
 }
 
-#define LOG_BODY(LVL, X) std::ostringstream oss_; oss_ << Log::prefix(LVL) << X << "| " << __FILE__ << ':' << __LINE__
+#define LOG_BODY(LVL, X) std::ostringstream oss_; oss_ << Log::prefix(LVL) << std::boolalpha << X << "| " << __FILE__ << ':' << __LINE__
 #define LOG_TRC(X) if (Log::traceEnabled()) { LOG_BODY("TRC", X); Log::logger().trace(oss_.str()); }
 #define LOG_DBG(X) if (Log::debugEnabled()) { LOG_BODY("DBG", X); Log::logger().debug(oss_.str()); }
 #define LOG_INF(X) if (Log::infoEnabled()) { LOG_BODY("INF", X); Log::logger().information(oss_.str()); }


More information about the Libreoffice-commits mailing list