]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove no longer used Logr::Absent.
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 11 Mar 2026 06:38:46 +0000 (07:38 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 11 Mar 2026 06:38:46 +0000 (07:38 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/logging.cc
pdns/logr.hh
pdns/recursordist/rec-rust-lib/rust/src/misc.rs

index 0df265fdbf44e0451c50e9d824661377cbc6c971..44ea936066b58ec6ccd2d8f848da2eeb83925bc6 100644 (file)
@@ -34,7 +34,7 @@ std::shared_ptr<const Logger> Logger::getptr() const
 
 bool Logger::enabled(Logr::Priority prio) const
 {
-  return _level <= _verbosity || prio != Logr::Absent;
+  return _level <= _verbosity || true;
 }
 
 void Logger::info(Logr::Priority prio, const std::string& msg) const
index 700c666bb085cd6711a54dc2dee691927384db14..563ad48870a0de89ae8f172d564c0e5872bf5c21 100644 (file)
@@ -54,7 +54,6 @@ struct Loggable
 
 enum Priority : uint8_t
 {
-  Absent = 0,
   Alert = 1,
   Critical = 2,
   Error = 3,
@@ -81,7 +80,7 @@ public:
 
   static std::string toString(Priority arg)
   {
-    const std::array<std::string, 8> names = {"Absent", "Alert", "Critical", "Error", "Warning", "Notice", "Info", "Debug"};
+    const std::array<std::string, 8> names = {"?", "Alert", "Critical", "Error", "Warning", "Notice", "Info", "Debug"};
     auto prio = static_cast<unsigned int>(arg);
     if (prio >= names.size()) {
       return "?";
index a4956b052f3345e09f5e76d7719bad207ec88a7e..1d6564d514a226001ce68265885562157a534a58 100644 (file)
@@ -29,7 +29,6 @@ pub mod rustmisc {
         Detailed,
     }
     enum Priority {
-        Absent = 0,
         Alert = 1,
         Critical = 2,
         Error = 3,