Changeset 1274
- Timestamp:
- 11/15/08 21:31:37 (16 months ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
lwres.cc (modified) (1 diff)
-
pdns_recursor.cc (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/lwres.cc
r1190 r1274 182 182 return 1; 183 183 } 184 catch( exception &mde) {184 catch(std::exception &mde) { 185 185 if(::arg().mustDo("log-common-errors")) 186 186 L<<Logger::Notice<<"Unable to parse packet from remote server "<<ip.toString()<<": "<<mde.what()<<endl; -
trunk/pdns/pdns/pdns_recursor.cc
r1264 r1274 569 569 if(ret.size()) { 570 570 shuffle(ret); 571 571 572 572 for(vector<DNSResourceRecord>::const_iterator i=ret.begin(); i!=ret.end(); ++i) { 573 573 pw.startRecord(i->qname, i->qtype.getCode(), i->ttl, i->qclass, (DNSPacketWriter::Place)i->d_place); … … 667 667 L<<Logger::Error<<"DNS parser error: "<<dc->d_mdp.d_qname<<", "<<e.what()<<endl; 668 668 } 669 catch( exception& e) {669 catch(std::exception& e) { 670 670 L<<Logger::Error<<"STL error: "<<e.what()<<endl; 671 671 } … … 1184 1184 command(); 1185 1185 } 1186 catch( exception& e) {1186 catch(std::exception& e) { 1187 1187 L<<Logger::Error<<"Error dealing with control socket request: "<<e.what()<<endl; 1188 1188 } … … 1487 1487 return "ok\n"; 1488 1488 } 1489 catch( exception& e) {1489 catch(std::exception& e) { 1490 1490 L<<Logger::Error<<"Had error reloading zones, keeping original data: "<<e.what()<<endl; 1491 1491 } … … 1527 1527 rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl); 1528 1528 } 1529 catch( exception &e) {1529 catch(std::exception &e) { 1530 1530 throw AhuException("Error parsing record '"+rr.qname+"' of type "+rr.qtype.getName()+" in zone '"+headers.first+"' from file '"+headers.second+"': "+e.what()); 1531 1531 } … … 1649 1649 } 1650 1650 } 1651 catch( exception& e) {1651 catch(std::exception& e) { 1652 1652 L<<Logger::Error<<"Retaining current script, error from '"<<fname<<"': "<< e.what() <<endl; 1653 1653 return string("Retaining current script, error from '"+fname+"': "+string(e.what())+"\n"); … … 1773 1773 1774 1774 } 1775 catch( exception &e) {1775 catch(std::exception &e) { 1776 1776 L<<Logger::Error<<"Failed to load 'lua' script from '"<<::arg()["lua-dns-script"]<<"': "<<e.what()<<endl; 1777 1777 exit(99); … … 1959 1959 #endif 1960 1960 ::arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR; 1961 #ifndef WIN32 1962 ::arg().set("socket-owner","Owner of socket")=""; 1963 ::arg().set("socket-group","Group of socket")=""; 1964 ::arg().set("socket-mode", "Permissions for socket")=""; 1965 #endif 1966 1961 1967 ::arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR; 1962 1968 ::arg().set("delegation-only","Which domains we only accept delegations from")=""; … … 2033 2039 ret=EXIT_FAILURE; 2034 2040 } 2035 catch( exception &e) {2041 catch(std::exception &e) { 2036 2042 L<<Logger::Error<<"STL Exception: "<<e.what()<<endl; 2037 2043 ret=EXIT_FAILURE;