git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fe460d4
)
Only log timestamps if -logtimestamps is set.
author
Matt Corallo
<matt@bluematt.me>
Wed, 9 Mar 2011 20:48:11 +0000 (21:48 +0100)
committer
Matt Corallo
<matt@bluematt.me>
Wed, 9 Mar 2011 20:48:11 +0000 (21:48 +0100)
util.cpp
patch
|
blob
|
history
diff --git
a/util.cpp
b/util.cpp
index
ab1f5aa
..
d3f3ed1
100644
(file)
--- 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);