mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-30 17:06:40 +00:00
Log thread id
This commit is contained in:
parent
f6a60790f8
commit
b33a291a67
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <mutex>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
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<Ts>(values) ...);
|
||||
log.write(stream.str());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue