From b33a291a67f2a96ef2dcce9b9f0dac2296cac93c Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 14 Jul 2018 12:06:15 +0300 Subject: [PATCH] Log thread id --- components/detournavigator/debug.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/detournavigator/debug.hpp b/components/detournavigator/debug.hpp index 2a19bcce8..fb8d5bd21 100644 --- a/components/detournavigator/debug.hpp +++ b/components/detournavigator/debug.hpp @@ -14,6 +14,7 @@ #include #include #include +#include class dtNavMesh; @@ -123,7 +124,7 @@ namespace DetourNavigator if (!log.isEnabled()) return; std::ostringstream stream; - stream << '[' << std::chrono::steady_clock::now() << "] "; + stream << '[' << std::chrono::steady_clock::now() << "] [" << std::this_thread::get_id() << "] "; write(stream, std::forward(values) ...); log.write(stream.str()); }