aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-03-09 19:53:40 +0100
committerMatt Corallo <matt@bluematt.me>2011-03-09 19:53:40 +0100
commitfe460d47b06d10095b882d7a9ea8a98ad0079bbd (patch)
tree41433dc6196d66bfcee79872e65a871ec34844e1 /util.cpp
parentb104df742d1acfcccb35e35c5427ef221296db73 (diff)
downloadbitcoin-fe460d47b06d10095b882d7a9ea8a98ad0079bbd.tar.xz
Add timestamp prefix to each line in the debug log (this time with human-readable times)
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.cpp b/util.cpp
index 8a2f9d525e..ab1f5aad8c 100644
--- a/util.cpp
+++ b/util.cpp
@@ -169,8 +169,8 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
}
if (fileout)
{
- //// Debug print useful for profiling
- //fprintf(fileout, " %"PRI64d" ", GetTimeMillis());
+ // Debug print useful for profiling
+ 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);