From ca221e6c21d684d50fa1fb9f9e7e3592ecc5ef5f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 9 Mar 2011 21:48:11 +0100 Subject: [PATCH] Only log timestamps if -logtimestamps is set. --- util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index ab1f5aad8c..d3f3ed1c89 100644 --- a/util.cpp +++ b/util.cpp @@ -170,7 +170,8 @@ inline int OutputDebugStringF(const char* pszFormat, ...) if (fileout) { // 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_start(arg_ptr, pszFormat); ret = vfprintf(fileout, pszFormat, arg_ptr);