diff options
| author | Gregory Maxwell <[email protected]> | 2012-05-14 18:59:28 -0700 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-05-14 18:59:28 -0700 |
| commit | 20f19893cbaa37fd0c1a2cb29bdddfb709ec0d13 (patch) | |
| tree | c727e7b377b14d799fe5fcda718f31462331f041 /src/main.cpp | |
| parent | Merge pull request #906 from sje397/ValidateMessage (diff) | |
| parent | ensure that no double timestamps show up in the debug.log, by removing manual... (diff) | |
| download | discoin-20f19893cbaa37fd0c1a2cb29bdddfb709ec0d13.tar.xz discoin-20f19893cbaa37fd0c1a2cb29bdddfb709ec0d13.zip | |
Merge pull request #1262 from Diapolo/no_double_timestamps
no more double timestamps in debug.log
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 20bb56e96..29c407f4a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2267,10 +2267,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) { static map<CService, vector<unsigned char> > mapReuseKey; RandAddSeedPerfmon(); - if (fDebug) { - printf("%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str()); + if (fDebug) printf("received: %s (%d bytes)\n", strCommand.c_str(), vRecv.size()); - } if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) { printf("dropmessagestest DROPPING RECV MESSAGE\n"); @@ -3473,7 +3471,6 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) printf("BitcoinMiner:\n"); printf("proof-of-work found \n hash: %s \ntarget: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str()); pblock->print(); - printf("%s ", DateTimeStrFormat("%x %H:%M", GetTime()).c_str()); printf("generated %s\n", FormatMoney(pblock->vtx[0].vout[0].nValue).c_str()); // Found a solution @@ -3614,7 +3611,6 @@ void static BitcoinMiner(CWallet *pwallet) if (GetTime() - nLogTime > 30 * 60) { nLogTime = GetTime(); - printf("%s ", DateTimeStrFormat("%x %H:%M", GetTime()).c_str()); printf("hashmeter %3d CPUs %6.0f khash/s\n", vnThreadsRunning[THREAD_MINER], dHashesPerSec/1000.0); } } |