aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-11 12:19:57 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-16 00:17:51 +0000
commitec71ce8d2d69188e4cb76193d8914857806d49f3 (patch)
treeb6d9505bccf3c2ce91092f5763c335756884fc41
parenteasylogging++: Add logging categories (diff)
downloadmonero-ec71ce8d2d69188e4cb76193d8914857806d49f3.tar.xz
easylogging++: Print thread ID in a nicer way
-rw-r--r--external/easylogging++/easylogging++.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h
index e2d969831..3b61ee0c2 100644
--- a/external/easylogging++/easylogging++.h
+++ b/external/easylogging++/easylogging++.h
@@ -363,6 +363,7 @@ ELPP_INTERNAL_DEBUGGING_OUT_INFO << ELPP_INTERNAL_DEBUGGING_MSG(internalInfoStre
#include <fstream>
#include <iostream>
#include <sstream>
+#include <iomanip>
#include <memory>
#include <type_traits>
#if ELPP_THREADING_ENABLED
@@ -1079,7 +1080,7 @@ namespace el {
/// @brief Gets ID of currently running threading using std::this_thread::get_id()
static inline std::string getCurrentThreadId(void) {
std::stringstream ss;
- ss << std::this_thread::get_id();
+ ss << std::setfill(' ') << std::setw(16) << std::hex << std::this_thread::get_id();
return ss.str();
}
static inline void msleep(int ms) {