{ "getTLSContext", true, "n", "returns the TLS context with index n" },
{ "getTLSFrontend", true, "n", "returns the TLS frontend with index n" },
{ "getTLSFrontendCount", true, "", "returns the number of DoT listeners" },
+ { "getVerbose", true, "", "get whether log messages at the verbose level will be logged" },
{ "grepq", true, "Netmask|DNS Name|100ms|{\"::1\", \"powerdns.com\", \"100ms\"} [, n]", "shows the last n queries and responses matching the specified client address or range (Netmask), or the specified DNS Name, or slower than 100ms" },
{ "hashPassword", true, "password [, workFactor]", "Returns a hashed and salted version of the supplied password, usable with 'setWebserverConfig()'"},
{ "HTTPHeaderRule", true, "name, regex", "matches DoH queries with a HTTP header 'name' whose content matches the regular expression 'regex'"},
});
luaCtx.writeFunction("setVerbose", [](bool verbose) { g_verbose = verbose; });
+ luaCtx.writeFunction("getVerbose", []() { return g_verbose; });
luaCtx.writeFunction("setVerboseHealthChecks", [](bool verbose) { g_verboseHealthChecks = verbose; });
luaCtx.writeFunction("setStaleCacheEntriesTTL", [](uint64_t ttl) {
:param bool verbose: Set to true if you want to enable verbose logging
+.. function:: getVerbose(verbose)
+
+ .. versionadded:: 1.8.0
+
+ Get whether log messages issued at the verbose level should be logged. This is turned off by default.
+
.. function:: setVerboseHealthChecks(verbose)
Set whether health check errors should be logged. This is turned off by default.