]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2205] (unrelated small fix) don't define constants in .h. see also #2358.
authorJINMEI Tatuya <jinmei@isc.org>
Mon, 15 Oct 2012 22:52:48 +0000 (15:52 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Mon, 15 Oct 2012 22:52:48 +0000 (15:52 -0700)
src/bin/auth/auth_log.cc
src/bin/auth/auth_log.h

index d41eaeab7797a9ef1dbeb36f47623beccb87abc6..fae7bd35a3df91ccf0776601f63ec03d809dbbed 100644 (file)
@@ -21,6 +21,12 @@ namespace auth {
 
 isc::log::Logger auth_logger("auth");
 
+const int DBG_AUTH_START = DBGLVL_START_SHUT;
+const int DBG_AUTH_SHUT = DBGLVL_START_SHUT;
+const int DBG_AUTH_OPS = DBGLVL_COMMAND;
+const int DBG_AUTH_DETAIL = DBGLVL_TRACE_BASIC;
+const int DBG_AUTH_MESSAGES = DBGLVL_TRACE_DETAIL_DATA;
+
 } // namespace auth
 } // namespace isc
 
index 33d44328771b95f234b57a32ab2d910f0aa56d94..7fb3a2d72a9240148bc5dcbf76817735f63319ce 100644 (file)
@@ -28,21 +28,21 @@ namespace auth {
 /// output.
 
 // Debug messages indicating normal startup are logged at this debug level.
-const int DBG_AUTH_START = DBGLVL_START_SHUT;
+extern const int DBG_AUTH_START;
 // Debug messages upon shutdown
-const int DBG_AUTH_SHUT = DBGLVL_START_SHUT;
+extern const int DBG_AUTH_SHUT;
 
 // Debug level used to log setting information (such as configuration changes).
-const int DBG_AUTH_OPS = DBGLVL_COMMAND;
+extern const int DBG_AUTH_OPS;
 
 // Trace detailed operations, including errors raised when processing invalid
 // packets.  (These are not logged at severities of WARN or higher for fear
 // that a set of deliberately invalid packets set to the authoritative server
 // could overwhelm the logging.)
-const int DBG_AUTH_DETAIL = DBGLVL_TRACE_BASIC;
+extern const int DBG_AUTH_DETAIL;
 
 // This level is used to log the contents of packets received and sent.
-const int DBG_AUTH_MESSAGES = DBGLVL_TRACE_DETAIL_DATA;
+extern const int DBG_AUTH_MESSAGES;
 
 /// Define the logger for the "auth" module part of b10-auth.  We could define
 /// a logger in each file, but we would want to define a common name to avoid