From 803d4b5da82075fe26296786a3193c35cf008b69 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 16 Jun 2016 14:46:48 +0200 Subject: [PATCH] remove debugging code --- pdns/dnsdist-lua2.cc | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) 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: "<