From 6ed24ca06b9e6873ef75e4bbb78782058602307a Mon Sep 17 00:00:00 2001 From: Matti Hiljanen Date: Wed, 12 Jun 2019 11:10:38 +0300 Subject: [PATCH] dnsdist: print stats from expungeByName --- pdns/dnsdist-lua-bindings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0