From: Matti Hiljanen Date: Wed, 12 Jun 2019 08:10:38 +0000 (+0300) Subject: dnsdist: print stats from expungeByName X-Git-Tag: dnsdist-1.4.0-rc1~143^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ed24ca06b9e6873ef75e4bbb78782058602307a;p=pdns dnsdist: print stats from expungeByName --- diff --git a/pdns/dnsdist-lua-bindings.cc b/pdns/dnsdist-lua-bindings.cc index 64b48b6c5..d29081e10 100644 --- a/pdns/dnsdist-lua-bindings.cc +++ b/pdns/dnsdist-lua-bindings.cc @@ -320,7 +320,7 @@ void setupLuaBindings(bool client) boost::optional qtype, boost::optional suffixMatch) { if (cache) { - cache->expungeByName(dname, qtype ? *qtype : QType(QType::ANY).getCode(), suffixMatch ? *suffixMatch : false); + g_outputBuffer="Expunged " + std::to_string(cache->expungeByName(dname, qtype ? *qtype : QType(QType::ANY).getCode(), suffixMatch ? *suffixMatch : false)) + " records\n"; } }); g_lua.registerFunction::*)()>("printStats", [](const std::shared_ptr cache) {