bitcoin/bitcoin — pull request #1262 by Diapolo (2012-05-11 22:18:29+00:00)
Title: no more double timestamps in debug.log

- ensure that no double timestamps show up in the debug.log, by checking for !fLogTimestamps, where a timestamp is manually added in the source
- all timestamps that are affected by this change now also use seconds in the format, to harmonize usage as this looks smoother in the log

These 2 lines could be used in a new utility-function called AddManualTimestamp() or something like that, if wished:

if (!fLogTimestamps)
printf("%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());