From: Miroslav Lichvar Date: Wed, 15 May 2013 08:36:52 +0000 (+0200) Subject: Log online/offline status change for burst sources too. X-Git-Tag: 1.28-pre1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebae435398f11bc5b2c9d3a144879bcbcf218d0c;p=thirdparty%2Fchrony.git Log online/offline status change for burst sources too. --- diff --git a/ntp_core.c b/ntp_core.c index 2db75ef3..e6253fa8 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1562,6 +1562,7 @@ NCR_TakeSourceOnline(NCR_Instance inst) break; case MD_BURST_WAS_OFFLINE: inst->opmode = MD_BURST_WAS_ONLINE; + LOG(LOGS_INFO, LOGF_NtpCore, "Source %s online", UTI_IPToString(&inst->remote_addr.ip_addr)); break; } } @@ -1586,6 +1587,7 @@ NCR_TakeSourceOffline(NCR_Instance inst) break; case MD_BURST_WAS_ONLINE: inst->opmode = MD_BURST_WAS_OFFLINE; + LOG(LOGS_INFO, LOGF_NtpCore, "Source %s offline", UTI_IPToString(&inst->remote_addr.ip_addr)); break; case MD_BURST_WAS_OFFLINE: break;