]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Backport 12495 to rex-4.8.x: Change a few logging urgency levels 12608/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 3 Mar 2023 08:25:27 +0000 (09:25 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 3 Mar 2023 08:25:27 +0000 (09:25 +0100)
Backport of #12495

pdns/rec-lua-conf.cc
pdns/recursordist/rec-main.cc
pdns/reczones.cc

index 9ad994b697c8ca268396c16421ad29f9b8cb611b..ce8bfb034e79900e0b531ec8b89fa854bfe1aa8b 100644 (file)
@@ -466,7 +466,7 @@ void loadRecursorLuaConfig(const std::string& fname, luaConfigDelayedThreads& de
     }
     catch (const std::exception& e) {
       SLOG(g_log << Logger::Error << "Unable to load RPZ zone from '" << filename << "': " << e.what() << endl,
-           log->error(Logr::Error, e.what(), "Exception while loadin RPZ zone from file"));
+           log->error(Logr::Error, e.what(), "Exception while loading RPZ zone from file"));
     }
   });
 
index 4d2cfeab87c26bf221f95c5b088104b8d2860477..343454cd56ffc976d85d9cba96d6f0fb0087103c 100644 (file)
@@ -366,12 +366,12 @@ static FDMultiplexer* getMultiplexer(Logr::log_t log)
       return ret;
     }
     catch (FDMultiplexerException& fe) {
-      SLOG(g_log << Logger::Error << "Non-fatal error initializing possible multiplexer (" << fe.what() << "), falling back" << endl,
-           log->error(Logr::Error, fe.what(), "Non-fatal error initializing possible multiplexer, falling back"));
+      SLOG(g_log << Logger::Warning << "Non-fatal error initializing possible multiplexer (" << fe.what() << "), falling back" << endl,
+           log->error(Logr::Warning, fe.what(), "Non-fatal error initializing possible multiplexer, falling back"));
     }
     catch (...) {
-      SLOG(g_log << Logger::Error << "Non-fatal error initializing possible multiplexer" << endl,
-           log->info(Logr::Error, "Non-fatal error initializing possible multiplexer"));
+      SLOG(g_log << Logger::Warning << "Non-fatal error initializing possible multiplexer" << endl,
+           log->info(Logr::Warning, "Non-fatal error initializing possible multiplexer"));
     }
   }
   SLOG(g_log << Logger::Error << "No working multiplexer found!" << endl,
index 6777ee174382f381f04eef6f2307d5d1ebe89fee..4af95fee50ed7bb97e8e19ed758b566a16821533 100644 (file)
@@ -325,8 +325,8 @@ std::tuple<std::shared_ptr<SyncRes::domainmap_t>, std::shared_ptr<notifyset_t>>
       // headers.first=toCanonic("", headers.first);
       if (n == 0) {
         ad.d_rdForward = false;
-        SLOG(g_log << Logger::Error << "Parsing authoritative data for zone '" << headers.first << "' from file '" << headers.second << "'" << endl,
-             log->info(Logr::Error, "Parsing authoritative data from file", "zone", Logging::Loggable(headers.first), "file", Logging::Loggable(headers.second)));
+        SLOG(g_log << Logger::Notice << "Parsing authoritative data for zone '" << headers.first << "' from file '" << headers.second << "'" << endl,
+             log->info(Logr::Notice, "Parsing authoritative data from file", "zone", Logging::Loggable(headers.first), "file", Logging::Loggable(headers.second)));
         ZoneParserTNG zpt(headers.second, DNSName(headers.first));
         zpt.setMaxGenerateSteps(::arg().asNum("max-generate-steps"));
         zpt.setMaxIncludes(::arg().asNum("max-include-depth"));