]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1945] add missing definition for level 70: DBGLVL_TRACE_ALL
authorAndrei Pavel <andrei@isc.org>
Mon, 19 Aug 2024 14:10:59 +0000 (17:10 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 22 Aug 2024 12:47:24 +0000 (15:47 +0300)
This way, all debug levels used are in src/lib/log/log_dbglevels.*

And no algebra is used in determining a log level as was the case in:

```
const int DBG_ALL = DBGLVL_TRACE_DETAIL + 20;
```

src/lib/asiodns/io_fetch.cc
src/lib/log/log_dbglevels.cc
src/lib/log/log_dbglevels.h

index 742abc66e9ccb3c2ab9ef2502bd0355d0f0ac834..562c44c8a781c5d84ff37841fe46a0d4de606804 100644 (file)
@@ -46,7 +46,7 @@ namespace asiodns {
 
 const int DBG_IMPORTANT = DBGLVL_TRACE_BASIC;
 const int DBG_COMMON = DBGLVL_TRACE_DETAIL;
-const int DBG_ALL = DBGLVL_TRACE_DETAIL + 20;
+const int DBG_ALL = DBGLVL_TRACE_ALL;
 
 /// @brief IOFetch Data
 ///
index 0863d1530a7b2844147dece9e82cd654bd658133..d2b0ebeb2db0033d8cb7e7f7a6ac80641b1f53b6 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2024 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
@@ -20,6 +20,7 @@ extern const int DBGLVL_TRACE_BASIC = 40;
 extern const int DBGLVL_TRACE_BASIC_DATA = 45;
 extern const int DBGLVL_TRACE_DETAIL = 50;
 extern const int DBGLVL_TRACE_DETAIL_DATA = 55;
+extern const int DBGLVL_TRACE_ALL = 70;
 
-}
-}
+}  // namespace log
+}  // namespace isc
index 2d449c74ac0877b734bdd48d93033b05ea6eca68..8fddbd0be270c97ad42f6207ebedf085248e2679 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2024 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
@@ -7,7 +7,7 @@
 #ifndef LOG_DBGLVLS_H
 #define LOG_DBGLVLS_H
 
-/// \file
+/// @file
 ///
 /// When a message is logged with DEBUG severity, the debug level associated
 /// with the message is also specified.  This debug level is a number
@@ -41,7 +41,7 @@
 namespace isc {
 namespace log {
 
-/// Process startup/shutdown debug messages.  Note that these are _debug_
+/// @brief Process startup/shutdown debug messages.  Note that these are _debug_
 /// messages, as other messages related to startup and shutdown may be output
 /// with another severity.  For example, when the authoritative server starts
 /// up, the "server started" message could be output at a severity of INFO.
@@ -49,15 +49,15 @@ namespace log {
 /// debug messages output at this severity.
 extern const int DBGLVL_START_SHUT;
 
-/// This debug level is reserved for logging the exchange of messages/commands
+/// @brief This debug level is reserved for logging the exchange of messages/commands
 /// between processes, including configuration messages.
 extern const int DBGLVL_COMMAND;
 
-/// This debug level is reserved for logging the details of packet handling, such
+/// @brief This debug level is reserved for logging the details of packet handling, such
 /// as dropping the packet for various reasons.
 extern const int DBGLVL_PKT_HANDLING;
 
-/// If the commands have associated data, this level is when they are printed.
+/// @brief If the commands have associated data, this level is when they are printed.
 /// This includes configuration messages.
 extern const int DBGLVL_COMMAND_DATA;
 
@@ -65,19 +65,22 @@ extern const int DBGLVL_COMMAND_DATA;
 // Depending on the exact nature of the code, modules may or may not use these
 // levels.
 
-/// Trace basic operations.
+/// @brief Trace basic operations.
 extern const int DBGLVL_TRACE_BASIC;
 
-/// Trace data associated with the basic operations.
+/// @brief Trace data associated with the basic operations.
 extern const int DBGLVL_TRACE_BASIC_DATA;
 
-/// Trace detailed operations.
+/// @brief Trace detailed operations.
 extern const int DBGLVL_TRACE_DETAIL;
 
-/// Trace data associated with detailed operations.
+/// @brief Trace data associated with detailed operations.
 extern const int DBGLVL_TRACE_DETAIL_DATA;
 
-}   // log namespace
-}   // isc namespace
+/// @brief The highest level of debug logging.
+extern const int DBGLVL_TRACE_ALL;
+
+}  // log namespace
+}  // isc namespace
 
 #endif // LOG_DBGLVLS_H