]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove debugging code 4008/head
authorbert hubert <bert.hubert@powerdns.com>
Thu, 16 Jun 2016 12:46:48 +0000 (14:46 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Thu, 16 Jun 2016 12:46:48 +0000 (14:46 +0200)
pdns/dnsdist-lua2.cc

index 657f6b68b9e18fbda7876b3f4bc9ad5fc16b615d..5f984ad06c5646bb5e652dd66e7088e22dadb6e3 100644 (file)
@@ -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: "<<e.what()<<endl;
-  }
+
+  root.visit([&visitor](const StatNode* node, const StatNode::Stat& self, const StatNode::Stat& children) {
+      visitor(*node, self, children);},  node);  
 
 }