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

New commits:
commit 386dc679a5313fa18cd35686e061781d7d5c3d45
Author: Ashod Nakashian <[email protected]>
Date:   Fri Feb 3 11:01:07 2017 -0500

    wsd: get system thread-id directly as not in Poco yet
    
    Change-Id: I49ba23b6cd50c2d9058e9803d7f65ec41277297b
    Reviewed-on: https://gerrit.libreoffice.org/33890
    Reviewed-by: Ashod Nakashian <[email protected]>
    Tested-by: Ashod Nakashian <[email protected]>

diff --git a/common/Log.hpp b/common/Log.hpp
index d8788a2..e4cc34d 100644
--- a/common/Log.hpp
+++ b/common/Log.hpp
@@ -175,7 +175,7 @@ namespace Log
     }
 }
 
-#define LOG_BODY_(PRIO, LVL, X) Poco::Message m_(l_.name(), "", 
Poco::Message::PRIO_##PRIO); char b_[1024]; std::ostringstream 
oss_(Log::prefix(b_, LVL, m_.getOsTid()), std::ostringstream::ate); oss_ << 
std::boolalpha << X << "| " << __FILE__ << ':' << __LINE__; 
m_.setText(oss_.str()); l_.log(m_);
+#define LOG_BODY_(PRIO, LVL, X) Poco::Message m_(l_.name(), "", 
Poco::Message::PRIO_##PRIO); char b_[1024]; std::ostringstream 
oss_(Log::prefix(b_, LVL, syscall(SYS_gettid)), std::ostringstream::ate); oss_ 
<< std::boolalpha << X << "| " << __FILE__ << ':' << __LINE__; 
m_.setText(oss_.str()); l_.log(m_);
 #define LOG_TRC(X) do { auto& l_ = Log::logger(); if (l_.trace()) { 
LOG_BODY_(TRACE, "TRC", X); } } while (false)
 #define LOG_DBG(X) do { auto& l_ = Log::logger(); if (l_.debug()) { 
LOG_BODY_(DEBUG, "DBG", X); } } while (false)
 #define LOG_INF(X) do { auto& l_ = Log::logger(); if (l_.information()) { 
LOG_BODY_(INFORMATION, "INF", X); } } while (false)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to