Only log timestamps if -logtimestamps is set.
This commit is contained in:
parent
fe460d47b0
commit
ca221e6c21
1 changed files with 2 additions and 1 deletions
1
util.cpp
1
util.cpp
|
@ -170,6 +170,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
|
|||
if (fileout)
|
||||
{
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue