]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Auth: Print the list of loaded modules next to the config.h preset 13162/head
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 22 Aug 2023 09:30:29 +0000 (11:30 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Tue, 22 Aug 2023 10:02:48 +0000 (12:02 +0200)
pdns/version.cc

index 3575303ca547a12f2879ccfbdd0ed20d09bde462..7f608572b30231e57ca5e48701623249bc22b317 100644 (file)
@@ -24,6 +24,9 @@
 #endif
 #include "logger.hh"
 #include "version.hh"
+#include "dnsbackend.hh"
+
+#include <boost/algorithm/string/join.hpp>
 
 static ProductType productType;
 
@@ -153,7 +156,9 @@ void showBuildConfiguration()
     endl;
 #ifdef PDNS_MODULES
   // Auth only
-  g_log<<Logger::Warning<<"Built-in modules: "<<PDNS_MODULES<<endl;
+  g_log << Logger::Warning << "Built-in modules: " << PDNS_MODULES << endl;
+  const auto& modules = BackendMakers().getModules();
+  g_log << Logger::Warning << "Loaded modules: " << boost::join(modules, " ") << endl;
 #endif
 #ifdef PDNS_CONFIG_ARGS
 #define double_escape(s) #s