aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nxcomp/src/Log.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nxcomp/src/Log.cpp b/nxcomp/src/Log.cpp
index 83e11b98a..951c10a04 100644
--- a/nxcomp/src/Log.cpp
+++ b/nxcomp/src/Log.cpp
@@ -29,6 +29,7 @@
#include <fstream>
#include <sstream>
#include <iomanip>
+#include <unistd.h>
#include "Log.h"
#include "config.h"
@@ -95,7 +96,7 @@ std::string NXLog::stamp_to_string(const NXLogStamp& stamp) const
if ( log_thread_id() )
{
if ( thread_name().empty() )
- oss << pthread_self() << " ";
+ oss << getpid() << "/" << pthread_self() << " ";
else
oss << "[" << thread_name() << "] ";
}