]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3755] Add started message to log output
authorShawn Routhier <sar@isc.org>
Wed, 18 Mar 2015 19:41:05 +0000 (12:41 -0700)
committerShawn Routhier <sar@isc.org>
Wed, 18 Mar 2015 19:41:05 +0000 (12:41 -0700)
Add a message that indicates when the v4 or v6 server
has completed processing its configuration and is about
to enter the loop to process dhcp messages.

src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp4/main.cc
src/bin/dhcp6/dhcp6_messages.mes
src/bin/dhcp6/main.cc

index 3aa3fad7876a887bea0d278c11c0a4c9ca1da0c0..218feda0f99ce973f8ab41787bf708f947df4d0a 100644 (file)
@@ -371,6 +371,11 @@ core component within the DHCPv4 server (the Dhcpv4 server object)
 has failed.  As a result, the server will exit.  The reason for the
 failure is given within the message.
 
+% DHCP4_STARTED Kea DHCPv4 server version %1 started
+This informational message indicates that the DHCPv4 server has
+processed all configuration information and is ready to process
+DHCPv4 packets.  The version is also printed.
+
 % DHCP4_STARTING Kea DHCPv4 server version %1 starting
 This informational message indicates that the DHCPv4 server has
 processed any command-line switches and is starting. The version
index 4a50cf5f42f8069c547bf2ca12dcf2007f81154c..28435072e0daa56ed4a94866195ba6ac972c16be 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2012, 2014 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2012, 2014-2015 Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
@@ -161,6 +161,9 @@ main(int argc, char* argv[]) {
             return (EXIT_FAILURE);
         }
 
+        // Tell the admin we are ready to process packets
+        LOG_INFO(dhcp4_logger, DHCP4_STARTED).arg(VERSION);
+
         // And run the main loop of the server.
         server.run();
 
index 208d80f9706f383007a64182b386dd92080d198d..bd52a0405a6a1e46693be21e75e737614761872c 100644 (file)
@@ -550,6 +550,11 @@ standalone mode, not connected to the message queue.  Standalone mode
 is only useful during program development, and should not be used in a
 production environment.
 
+% DHCP6_STARTED Kea DHCPv6 server version %1 started
+This informational message indicates that the IPv6 DHCP server has
+processed all configuration information and is ready to process
+DHCPv6 packets.  The version is also printed.
+
 % DHCP6_STARTING Kea DHCPv6 server version %1 starting
 This informational message indicates that the IPv6 DHCP server has
 processed any command-line switches and is starting. The version
index b4ff243735b64ef5ff4d6b38dec1b3c37040ce07..9c74921f9ad52ac313a999ac5a5fd447d8382ef2 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2014 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
@@ -164,6 +164,9 @@ main(int argc, char* argv[]) {
             return (EXIT_FAILURE);
         }
 
+        // Tell the admin we are ready to process packets
+        LOG_INFO(dhcp6_logger, DHCP6_STARTED).arg(VERSION);
+
         // And run the main loop of the server.
         server.run();