diff options
| author | Matt Corallo <[email protected]> | 2011-03-09 21:48:11 +0100 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2011-03-09 21:48:11 +0100 |
| commit | ca221e6c21d684d50fa1fb9f9e7e3592ecc5ef5f (patch) | |
| tree | d711f8c7300b3a440d663d194c6a17cbd7c1e029 /util.cpp | |
| parent | Add timestamp prefix to each line in the debug log (this time with human-read... (diff) | |
| download | discoin-ca221e6c21d684d50fa1fb9f9e7e3592ecc5ef5f.tar.xz discoin-ca221e6c21d684d50fa1fb9f9e7e3592ecc5ef5f.zip | |
Only log timestamps if -logtimestamps is set.
Diffstat (limited to 'util.cpp')
| -rw-r--r-- | util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |