diff options
author | tulip <tulip@JBinUp.local> | 2015-11-22 06:48:25 +0000 |
---|---|---|
committer | tulip <tulip@JBinUp.local> | 2015-11-22 06:48:25 +0000 |
commit | 4846543ac58c72ca5ec2b25e690c8e1a4247c048 (patch) | |
tree | 5ddff400e9ddbdac70fbedadf608f4967f60bbd2 /src/timedata.cpp | |
parent | 31de2414c65d62b0f5e4dc7d967be1279ca2e027 (diff) |
Move time data log print to 'net' category to reduce log noise
Diffstat (limited to 'src/timedata.cpp')
-rw-r--r-- | src/timedata.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp index 0641009537..861c375989 100644 --- a/src/timedata.cpp +++ b/src/timedata.cpp @@ -55,7 +55,7 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample) // Add data static CMedianFilter<int64_t> vTimeOffsets(BITCOIN_TIMEDATA_MAX_SAMPLES, 0); 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): // @@ -105,11 +105,11 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample) } } } - if (fDebug) { - BOOST_FOREACH(int64_t n, vSorted) - LogPrintf("%+d ", n); - LogPrintf("| "); - } - LogPrintf("nTimeOffset = %+d (%+d minutes)\n", nTimeOffset, nTimeOffset/60); + + BOOST_FOREACH(int64_t n, vSorted) + LogPrint("net", "%+d ", n); + LogPrint("net", "| "); + + LogPrint("net", "nTimeOffset = %+d (%+d minutes)\n", nTimeOffset, nTimeOffset/60); } } |