]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5208] Compilation warnings removed in src/lib/hooks
authorTomek Mrugalski <tomasz@isc.org>
Fri, 14 Apr 2017 17:25:28 +0000 (19:25 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 20 Apr 2017 17:44:30 +0000 (19:44 +0200)
src/lib/hooks/hooks_log.cc
src/lib/hooks/hooks_log.h

index 0426364486e6488dceae2686f896113866c68b44..9e8d52bfc4ca5b145b680fc818b49330a42b81bf 100644 (file)
@@ -7,6 +7,7 @@
 /// Defines the logger used by the Hooks
 
 #include <hooks/hooks_log.h>
+#include <log/macros.h>
 
 namespace isc {
 namespace hooks {
@@ -15,6 +16,11 @@ 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;
+
+
 } // namespace hooks
 } // namespace isc
 
index 3f780e0fcd89bda45bba66674c7127e224f3b849..6b567c9714a24175cd41a3e485d6f54d2980731e 100644 (file)
@@ -19,14 +19,14 @@ namespace hooks {
 /// Note that higher numbers equate to more verbose (and detailed) output.
 
 // The first level traces normal operations,
-const int HOOKS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int HOOKS_DBG_TRACE;
 
 // The next level traces each call to hook code.
-const int HOOKS_DBG_CALLS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int HOOKS_DBG_CALLS;
 
 // Additional information on the calls.  Report each call to a callout (even
 // if there are multiple callouts on a hook) and each status return.
-const int HOOKS_DBG_EXTENDED_CALLS = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int HOOKS_DBG_EXTENDED_CALLS;
 
 
 /// @brief Hooks Logger