aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-09-27 16:40:16 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-09-27 16:40:16 +0200
commit9fea833a1229f9657b96ef2f0a3fb6c20e790657 (patch)
tree9f2ac65608c07c2e3bdad3c6c11e1ee7c1a81b31
parentad57b310bac44a7e470cf66276421f2bbc61b1f0 (diff)
timedata: Prevent warning overkill
The "please check your computer's data and time" message when the clock deviates from the network currently generates an overkill of messages: orion@lethe:~/bitcoin$ src/bitcoind Warning: Warning: Please check that your computer's date and time are correct! If your clock is wrong Bitcoin Core will not work properly. In the log: 2015-09-27 16:24:13 *** Warning: Please check that your computer's date and time are correct! If your clock is wrong Bitcoin Core will not work properly. 2015-09-27 16:24:13 Warning: Warning: Please check that your computer's date and time are correct! If your clock is wrong Bitcoin Core will not work properly. Remove one level of 'Warning:' and reduce to one log message.
-rw-r--r--src/timedata.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp
index a14d69c116..0641009537 100644
--- a/src/timedata.cpp
+++ b/src/timedata.cpp
@@ -99,9 +99,8 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample)
if (!fMatch)
{
fDone = true;
- string strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong Bitcoin Core will not work properly.");
+ string strMessage = _("Please check that your computer's date and time are correct! If your clock is wrong Bitcoin Core will not work properly.");
strMiscWarning = strMessage;
- LogPrintf("*** %s\n", strMessage);
uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_WARNING);
}
}