]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Log online/offline status change for burst sources too.
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 15 May 2013 08:36:52 +0000 (10:36 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 15 May 2013 09:03:18 +0000 (11:03 +0200)
ntp_core.c

index 2db75ef365be3e34ce90d81d656e5f5ca8b777f2..e6253fa87bbf3b70dd6582f54a7395607c0c1618 100644 (file)
@@ -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;