]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[174-warning-for-unused-trace-levels] Made extern debug levels 174-warning-for-unused-trace-levels 186-add-kea-netconf-daemon-to-keactrl_base
authorFrancis Dupont <fdupont@isc.org>
Wed, 5 Dec 2018 22:19:38 +0000 (23:19 +0100)
committerFrancis Dupont <fdupont@isc.org>
Thu, 6 Dec 2018 13:19:34 +0000 (08:19 -0500)
19 files changed:
src/bin/dhcp4/dhcp4_log.cc
src/bin/dhcp4/dhcp4_log.h
src/bin/dhcp6/dhcp6_log.cc
src/bin/dhcp6/dhcp6_log.h
src/bin/netconf/netconf_log.cc
src/bin/netconf/netconf_log.h
src/lib/config/config_log.cc
src/lib/config/config_log.h
src/lib/database/db_log.cc
src/lib/database/db_log.h
src/lib/dhcpsrv/alloc_engine_log.cc
src/lib/dhcpsrv/alloc_engine_log.h
src/lib/dhcpsrv/dhcpsrv_log.cc
src/lib/dhcpsrv/dhcpsrv_log.h
src/lib/dhcpsrv/hosts_log.cc
src/lib/dhcpsrv/hosts_log.h
src/lib/eval/eval_log.cc
src/lib/eval/eval_log.h
src/lib/hooks/hooks_log.cc

index 4f82a1b3a9a057cc720be639f8ea5ca67cdce0aa..315ca35a22d186149851db84364906154447ff65 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 namespace isc {
 namespace dhcp {
 
+extern const int DBG_DHCP4_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP4_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP4_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP4_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
 const char* DHCP4_ROOT_LOGGER_NAME = "kea-dhcp4";
 const char* DHCP4_APP_LOGGER_NAME = "dhcp4";
 const char* DHCP4_BAD_PACKET_LOGGER_NAME = "bad-packets";
index dd54756da7f96acf36157b4db3ec11f5f592652c..3b03c2aac24c3c7004330feae4fdb11c49aee047 100644 (file)
@@ -21,19 +21,19 @@ namespace dhcp {
 //@{
 
 /// @brief Debug level used to log information during server startup.
-const int DBG_DHCP4_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_START;
 
 /// @brief Debug level used to log information during server shutdown.
-const int DBG_DHCP4_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_SHUT;
 
 /// @brief Debug level used to log receiving commands.
-const int DBG_DHCP4_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP4_COMMAND;
 
 /// @brief Debug level used to trace basic operations within the code.
-const int DBG_DHCP4_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_BASIC;
 
 /// @brief Debug level used to trace hook related operations
-const int DBG_DHCP4_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_HOOKS;
 
 /// @brief Debug level used to log the traces with some basic data.
 ///
@@ -42,7 +42,7 @@ const int DBG_DHCP4_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
 /// more detailed information in cases when it is warranted and the
 /// extraction of the data doesn't impact the server's performance
 /// significantly.
-const int DBG_DHCP4_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP4_BASIC_DATA;
 
 /// @brief Debug level used to trace detailed errors.
 ///
@@ -50,10 +50,10 @@ const int DBG_DHCP4_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
 /// packets.  (These are not logged at severities of WARN or higher for fear
 /// that a set of deliberately invalid packets set to the server could overwhelm
 /// the logging.)
-const int DBG_DHCP4_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP4_DETAIL;
 
 /// @brief This level is used to log the contents of packets received and sent.
-const int DBG_DHCP4_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DBG_DHCP4_DETAIL_DATA;
 
 //@}
 
index 98e319457ec57a4483d50cb07a47fac57d51adce..31b9e526adadfdb0c71d1d5e2d0c13ad5a70bb3a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 namespace isc {
 namespace dhcp {
 
+extern const int DBG_DHCP6_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP6_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP6_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP6_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
 const char* DHCP6_ROOT_LOGGER_NAME = "kea-dhcp6";
 const char* DHCP6_APP_LOGGER_NAME = "dhcp6";
 const char* DHCP6_BAD_PACKET_LOGGER_NAME = "bad-packets";
index 32241318b32cb43d0a1cf0366166a1d985f82eb2..2ce7201e12618f270b7f25912d90a3c302f45381 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -18,19 +18,19 @@ namespace dhcp {
 //@{
 
 /// @brief Debug level used to log information during server startup.
-const int DBG_DHCP6_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_START;
 
 /// @brief Debug level used to log information during server shutdown.
-const int DBG_DHCP6_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_SHUT;
 
 /// @brief Debug level used to log receiving commands.
-const int DBG_DHCP6_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP6_COMMAND;
 
 /// @brief Debug level used to trace basic operations within the code.
-const int DBG_DHCP6_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_BASIC;
 
 /// @brief Debug level used to trace hook related operations
-const int DBG_DHCP6_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_HOOKS;
 
 /// @brief Debug level used to log the traces with some basic data.
 ///
@@ -39,7 +39,7 @@ const int DBG_DHCP6_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
 /// more detailed information in cases when it is warranted and the
 /// extraction of the data doesn't impact the server's performance
 /// significantly.
-const int DBG_DHCP6_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP6_BASIC_DATA;
 
 /// @brief Debug level used to trace detailed errors.
 ///
@@ -47,10 +47,10 @@ const int DBG_DHCP6_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
 /// packets.  (These are not logged at severities of WARN or higher for fear
 /// that a set of deliberately invalid packets set to the server could overwhelm
 /// the logging.)
-const int DBG_DHCP6_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP6_DETAIL;
 
 /// @brief This level is used to log the contents of packets received and sent.
-const int DBG_DHCP6_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DBG_DHCP6_DETAIL_DATA;
 
 //@}
 
index f4b9f497b96ed6facd9c79d15373cb57e5403f00..d44463e430e142f5a9793b6cd6bdf3e2e86dc316 100644 (file)
 namespace isc {
 namespace netconf {
 
+extern const int NETCONF_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int NETCONF_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int NETCONF_DBG_TRACE_DETAIL_DATA =
+    isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
 const char* NETCONF_LOGGER_NAME = "netconf";
 
 isc::log::Logger netconf_logger(NETCONF_LOGGER_NAME);
index 80e7ce0c70d59d489f57cd8207be68d79512bc3e..72a51d04174082f85544dd03b1e3ad0711f07536 100644 (file)
@@ -26,19 +26,19 @@ namespace netconf {
 /// @brief Traces normal operations.
 ///
 /// E.g. sending a command to a server etc.
-const int NETCONF_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int NETCONF_DBG_TRACE;
 
 /// @brief Records the results of the commands.
 ///
 /// Using the example of tracing commands to a server, this will just record
 /// the summary results.
-const int NETCONF_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int NETCONF_DBG_RESULTS;
 
 /// @brief Additional information.
 ///
 /// Record detailed tracing. This is generally reserved for tracing
 /// configurations from or to a server.
-const int NETCONF_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int NETCONF_DBG_TRACE_DETAIL_DATA;
 
 ///@}
 
index b1ad13df15670d1b2e29eb01d12fbdf2bde49da9..67f896fbd6c9acda2e7609769ec8dc9f541e22ed 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -15,6 +15,8 @@ namespace config {
 
 isc::log::Logger command_logger("commands");
 
+extern const int DBG_COMMAND = isc::log::DBGLVL_COMMAND;
+
 } // namespace nsas
 } // namespace isc
 
index 4937f4a9dc0e85e527d8aa890cca8686635567d3..08b4ddb83c88d8bda3042213da13c36736097329 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -21,7 +21,7 @@ namespace config {
 extern isc::log::Logger command_logger;
 
 // Enumerate configuration elements as they are processed.
-const int DBG_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_COMMAND;
 
 } // namespace config
 } // namespace isc
index 8b775dba259959d89be375ef523ff05b9266ee54..2b60a9b65b941d10bc705ca978bb939b1a106b03 100644 (file)
@@ -17,6 +17,9 @@ using namespace isc::log;
 namespace isc {
 namespace db {
 
+/// @brief Database logging levels.
+extern const int DB_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+
 /// @brief Map of translated messages.
 const DbLogger::MessageMap db_message_map = {
     { DB_INVALID_ACCESS,       DATABASE_INVALID_ACCESS },
index 5096ad9543b8d6fe52b09e555a483143f9f9ba09..0351ba8c328c9b687f739c808ff8e3d18aab0a66 100644 (file)
@@ -37,7 +37,7 @@ namespace db {
 ///
 /// Record detailed tracing. This is generally reserved for tracing access to
 /// the lease database.
-const int DB_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DB_DBG_TRACE_DETAIL;
 
 ///@}
 
index 3d5fa15d6081e34bcf815ae1aba646aa3b1efc93..d3086de026f9128cecaf0387db41037be2f63771 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 namespace isc {
 namespace dhcp {
 
+extern const int ALLOC_ENGINE_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int ALLOC_ENGINE_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL_DATA =
+    isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
 isc::log::Logger alloc_engine_logger("alloc-engine");
 
 } // namespace dhcp
index 5c35a9eca3c95b4032f050ab25967af5d7c5f434..14c1fa407238df46bc6b30483cd5c0858ce238b3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -19,23 +19,23 @@ namespace dhcp {
 /// Defines the levels used to output debug messages from the @c AllocEngine.
 
 /// @brief Traces normal operations
-const int ALLOC_ENGINE_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int ALLOC_ENGINE_DBG_TRACE;
 
 /// @brief Records the results of various operations.
 ///
 /// Messages logged at this level will typically contain summary of the
 /// data retrieved.
-const int ALLOC_ENGINE_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int ALLOC_ENGINE_DBG_RESULTS;
 
 /// @brief Record detailed traces
 ///
 /// Messages logged at this level will log detailed tracing information.
-const int ALLOC_ENGINE_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL;
 
 /// @brief Records detailed results of various operations.
 ///
 /// Messages logged at this level will contain detailed results.
-const int ALLOC_ENGINE_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL_DATA;
 
 //@}
 
index ea2231c3be96094025b5187737b05f3b754af86d..ef0d578ac84f4ffc2c8d3c3af376775f4048679c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 namespace isc {
 namespace dhcp {
 
+extern const int DHCPSRV_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DHCPSRV_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DHCPSRV_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DHCPSRV_DBG_TRACE_DETAIL_DATA =
+    isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DHCPSRV_DBG_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+
 isc::log::Logger dhcpsrv_logger("dhcpsrv");
 
 } // namespace dhcp
index b4c41b1cb228b32d96f2de20cb4393fe4571a733..95fa7015d0b8737125dc7dea8a0b6ea16f606967 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -23,27 +23,27 @@ namespace dhcp {
 /// @brief Traces normal operations
 ///
 /// E.g. sending a query to the database etc.
-const int DHCPSRV_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DHCPSRV_DBG_TRACE;
 
 /// @brief Records the results of the lookups
 ///
 /// Using the example of tracing queries from the backend database, this will
 /// just record the summary results.
-const int DHCPSRV_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DHCPSRV_DBG_RESULTS;
 
 /// @brief Additional information
 ///
 /// Record detailed tracing. This is generally reserved for tracing access to
 /// the lease database.
-const int DHCPSRV_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DHCPSRV_DBG_TRACE_DETAIL;
 
 /// @brief Additional information
 ///
 /// Record detailed (and verbose) data on the server.
-const int DHCPSRV_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DHCPSRV_DBG_TRACE_DETAIL_DATA;
 
 // Trace hook related operations
-const int DHCPSRV_DBG_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DHCPSRV_DBG_HOOKS;
 
 ///@}
 
index fbcb97e197d5c7567b783f6bd39479d37873102b..e5602dd6b2175c6c6f185118be89ec26f16fb63e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 namespace isc {
 namespace dhcp {
 
+extern const int HOSTS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int HOSTS_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int HOSTS_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int HOSTS_DBG_TRACE_DETAIL_DATA =
+    isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
 isc::log::Logger hosts_logger("hosts");
 
 } // namespace dhcp
index e4b1faf62d3cd6667e45ab9af3a203fd97380f05..4d1dc3d54f281896a949c99bb0fd6adc9f820f97 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -24,23 +24,23 @@ namespace dhcp {
 ///
 /// An example of the normal operation is the call to one of the functions
 /// which retrieve the reservations or add new reservation.
-const int HOSTS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int HOSTS_DBG_TRACE;
 
 /// @brief Records the results of the lookups
 ///
 /// Messages logged at this level will typically contain summary of the
 /// data retrieved.
-const int HOSTS_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int HOSTS_DBG_RESULTS;
 
 /// @brief Record detailed traces
 ///
 /// Messages logged at this level will log detailed tracing information.
-const int HOSTS_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int HOSTS_DBG_TRACE_DETAIL;
 
 /// @brief Records detailed results of lookups.
 ///
 /// Messages logged at this level will contain detailed results.
-const int HOSTS_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int HOSTS_DBG_TRACE_DETAIL_DATA;
 
 ///@}
 
index 6492ad69c77c62831f0ddebd2aab638685f71af0..d9aeffa833a781a6287fec30bc65f6301fa30059 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -13,6 +13,9 @@
 namespace isc {
 namespace dhcp {
 
+extern const int EVAL_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int EVAL_DBG_STACK = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
 isc::log::Logger eval_logger("eval");
 
 } // namespace dhcp
index 0b33c43717385a571deef6d880ed80e2a450fdc1..566702545f911f7a4cb1f148e86c4c22c175eac5 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -19,11 +19,11 @@ namespace dhcp {
 /// Note that higher numbers equate to more verbose (and detailed) output.
 
 // The first level traces normal operations,
-const int EVAL_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int EVAL_DBG_TRACE;
 
 // Additional information on the calls.  Report the values that were
 // popped from or pushed to the value stack.
-const int EVAL_DBG_STACK = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int EVAL_DBG_STACK;
 
 /// @brief Eval Logger
 ///
index 6f75bc92dfdd619ad6a1853ce3950312c06cccd1..1227ec220eb9e122c942045322bc4867976b3ac7 100644 (file)
@@ -18,9 +18,9 @@ isc::log::Logger hooks_logger("hooks");
 
 isc::log::Logger callouts_logger("callouts");
 
-const int HOOKS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
-const int HOOKS_DBG_CALLS = isc::log::DBGLVL_TRACE_BASIC_DATA;
-const int HOOKS_DBG_EXTENDED_CALLS = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int HOOKS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int HOOKS_DBG_CALLS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int HOOKS_DBG_EXTENDED_CALLS = isc::log::DBGLVL_TRACE_DETAIL_DATA;
 
 
 } // namespace hooks