mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-28 18:10:20 +02:00
Add timestamp prefix to each line in the debug log (this time with human-readable times)
This commit is contained in:
4
util.cpp
4
util.cpp
@@ -169,8 +169,8 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
|
||||
}
|
||||
if (fileout)
|
||||
{
|
||||
//// Debug print useful for profiling
|
||||
//fprintf(fileout, " %"PRI64d" ", GetTimeMillis());
|
||||
// Debug print useful for profiling
|
||||
fprintf(fileout, "%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
|
||||
va_list arg_ptr;
|
||||
va_start(arg_ptr, pszFormat);
|
||||
ret = vfprintf(fileout, pszFormat, arg_ptr);
|
||||
|
Reference in New Issue
Block a user