mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-10 23:07:52 +00:00
Only log timestamps if -logtimestamps is set.
This commit is contained in:
parent
fe460d47b0
commit
ca221e6c21
3
util.cpp
3
util.cpp
@ -170,7 +170,8 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
|
|||||||
if (fileout)
|
if (fileout)
|
||||||
{
|
{
|
||||||
// Debug print useful for profiling
|
// Debug print useful for profiling
|
||||||
fprintf(fileout, "%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
|
if (GetBoolArg("-logtimestamps"))
|
||||||
|
fprintf(fileout, "%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
|
||||||
va_list arg_ptr;
|
va_list arg_ptr;
|
||||||
va_start(arg_ptr, pszFormat);
|
va_start(arg_ptr, pszFormat);
|
||||||
ret = vfprintf(fileout, pszFormat, arg_ptr);
|
ret = vfprintf(fileout, pszFormat, arg_ptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user