From 588d64a30b0a09cdb8a378338c25f58a7c07639b Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 14 Nov 2018 12:27:11 -0500 Subject: [PATCH] more NTP logging --- libi2pd/Timestamp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libi2pd/Timestamp.cpp b/libi2pd/Timestamp.cpp index 18314745..939e7f91 100644 --- a/libi2pd/Timestamp.cpp +++ b/libi2pd/Timestamp.cpp @@ -82,10 +82,14 @@ namespace util uint32_t ts = bufbe32toh (buf + 32); if (ts > 2208988800U) ts -= 2208988800U; // 1/1/1970 from 1/1/1900 g_TimeOffset = ts - ourTs; - LogPrint (eLogInfo, address, "Timestamp: time offset from system time is ", g_TimeOffset, " seconds"); + LogPrint (eLogInfo, "Timestamp: ", address, " time offset from system time is ", g_TimeOffset, " seconds"); } } + else + LogPrint (eLogError, "Timestamp: Couldn't open UDP socket"); } + else + LogPrint (eLogError, "Timestamp: Couldn't resove address ", address); } void RequestNTPTimeSync ()