]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3507] Renamed B10_LOGGER_DESTINATION to KEA_LOGGER_DESTINATION in keactrl.
authorMarcin Siodelski <marcin@isc.org>
Tue, 12 Aug 2014 12:35:02 +0000 (14:35 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 12 Aug 2014 12:35:02 +0000 (14:35 +0200)
src/bin/keactrl/keactrl.in

index ca10b503f6035e35663c03b34af6f86a692f8852..37d2121295413dfa695aebbb3254d5210c278c01 100644 (file)
@@ -166,12 +166,14 @@ run_conditional() {
 ### Script starts here ###
 
 # Configure logger to log messages into the file.
-# Do not set destination if the B10_LOGGER_DESTINATION is set,
+# Do not set destination if the KEA_LOGGER_DESTINATION is set,
 # because a unit test could have set this to some other location.
-# @todo Rely on the Kea configuration file once #3427 is done.
-if [ -z ${B10_LOGGER_DESTINATION} ]; then
+# Note that when the configuration is applied this location may be
+# altered and only the handful of initial messages will be logged
+# to the default file.
+if [ -z ${KEA_LOGGER_DESTINATION} ]; then
     prefix=@prefix@
-    export B10_LOGGER_DESTINATION=@localstatedir@/@PACKAGE@/kea.log
+    export KEA_LOGGER_DESTINATION=@localstatedir@/@PACKAGE@/kea.log
 fi
 
 command=${1}