Browse Source

Merge pull request #7075

4846543 Move time data log print to 'net' category to reduce log noise (tulip)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
b19fe277dd
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 14
      src/timedata.cpp

14
src/timedata.cpp

@ -55,7 +55,7 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample)
// Add data // Add data
static CMedianFilter<int64_t> vTimeOffsets(BITCOIN_TIMEDATA_MAX_SAMPLES, 0); static CMedianFilter<int64_t> vTimeOffsets(BITCOIN_TIMEDATA_MAX_SAMPLES, 0);
vTimeOffsets.input(nOffsetSample); vTimeOffsets.input(nOffsetSample);
LogPrintf("Added time data, samples %d, offset %+d (%+d minutes)\n", vTimeOffsets.size(), nOffsetSample, nOffsetSample/60); LogPrint("net","added time data, samples %d, offset %+d (%+d minutes)\n", vTimeOffsets.size(), nOffsetSample, nOffsetSample/60);
// There is a known issue here (see issue #4521): // There is a known issue here (see issue #4521):
// //
@ -105,11 +105,11 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample)
} }
} }
} }
if (fDebug) {
BOOST_FOREACH(int64_t n, vSorted) BOOST_FOREACH(int64_t n, vSorted)
LogPrintf("%+d ", n); LogPrint("net", "%+d ", n);
LogPrintf("| "); LogPrint("net", "| ");
}
LogPrintf("nTimeOffset = %+d (%+d minutes)\n", nTimeOffset, nTimeOffset/60); LogPrint("net", "nTimeOffset = %+d (%+d minutes)\n", nTimeOffset, nTimeOffset/60);
} }
} }

Loading…
Cancel
Save