mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
log, sync: add LOCK logging category, apply it to lock contention
This commit is contained in:
parent
bb9f76a719
commit
b7a17444e0
4 changed files with 5 additions and 3 deletions
|
|
@ -29,8 +29,8 @@ static_assert(false, "thread_local is not supported");
|
|||
#endif
|
||||
void PrintLockContention(const char* pszName, const char* pszFile, int nLine)
|
||||
{
|
||||
LogPrintf("LOCKCONTENTION: %s\n", pszName);
|
||||
LogPrintf("Locker: %s:%d\n", pszFile, nLine);
|
||||
LogPrint(BCLog::LOCK, "LOCKCONTENTION: %s\n", pszName);
|
||||
LogPrint(BCLog::LOCK, "Locker: %s:%d\n", pszFile, nLine);
|
||||
}
|
||||
#endif /* DEBUG_LOCKCONTENTION */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue