mirror of
https://git.telodendria.io/Telodendria/Cytoplasm.git
synced 2025-04-25 18:36:03 +00:00
Show human-readable thread ID in log messages.
This helps debug some multithreading issues.
This commit is contained in:
parent
5694a609eb
commit
c5cfdb9894
4 changed files with 46 additions and 3 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <Log.h>
|
||||
|
||||
#include <Memory.h>
|
||||
#include <Util.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
@ -316,6 +317,8 @@ Logv(LogConfig * config, int level, const char *msg, va_list argp)
|
|||
}
|
||||
}
|
||||
|
||||
StreamPrintf(config->out, "(%lu) ", UtilThreadNo());
|
||||
|
||||
switch (level)
|
||||
{
|
||||
case LOG_EMERG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue