From: bert hubert Date: Thu, 16 Jun 2016 12:46:48 +0000 (+0200) Subject: remove debugging code X-Git-Tag: auth-4.0.0-rc1~19^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4008%2Fhead;p=thirdparty%2Fpdns.git remove debugging code --- diff --git a/pdns/dnsdist-lua2.cc b/pdns/dnsdist-lua2.cc index 657f6b68b9..5f984ad06c 100644 --- a/pdns/dnsdist-lua2.cc +++ b/pdns/dnsdist-lua2.cc @@ -67,28 +67,9 @@ void statNodeRespRing(statvisitor_t visitor) root.submit(c.name, c.dh.rcode, c.requestor); } StatNode::Stat node; - try { - root.visit([&visitor](const StatNode* node, const StatNode::Stat& self, const StatNode::Stat& children) { - visitor(*node, self, children);} - , node); - } - catch(const LuaContext::ExecutionErrorException& e) { - std::cerr << e.what(); - try { - std::rethrow_if_nested(e); - std::cerr << std::endl; - } catch(const std::exception& e) { - // e is the exception that was thrown from inside the lambda - std::cerr << ": " << e.what() << std::endl; - } - catch(const PDNSException& e) { - // e is the exception that was thrown from inside the lambda - std::cerr << ": " << e.reason << std::endl; - } - } - catch(std::exception& e) { - cerr<<"error: "<