mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
Merge branch 'log-timestamp' of https://github.com/TheBlueMatt/bitcoin
This commit is contained in:
commit
d43fd8a038
1 changed files with 3 additions and 2 deletions
5
util.cpp
5
util.cpp
|
@ -170,8 +170,9 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
|
|||
}
|
||||
if (fileout)
|
||||
{
|
||||
//// Debug print useful for profiling
|
||||
//fprintf(fileout, " %"PRI64d" ", GetTimeMillis());
|
||||
// Debug print useful for profiling
|
||||
if (GetBoolArg("-logtimestamps"))
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue