Parcourir la source

[5208] Compilation warnings removed in src/lib/hooks

Tomek Mrugalski il y a 8 ans
Parent
commit
9a05793cfe
2 fichiers modifiés avec 9 ajouts et 3 suppressions
  1. 6 0
      src/lib/hooks/hooks_log.cc
  2. 3 3
      src/lib/hooks/hooks_log.h

+ 6 - 0
src/lib/hooks/hooks_log.cc

@@ -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
 

+ 3 - 3
src/lib/hooks/hooks_log.h

@@ -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