[svn] commit: r772 - in /branches/each-ds/src: bin/auth/auth_srv.cc lib/auth/cpp/data_source_sqlite3.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Feb 9 12:30:06 UTC 2010
Author: mgraff
Date: Tue Feb 9 12:30:06 2010
New Revision: 772
Log:
silence traffic by default. Uncomment the define VERBOSE to re-enable
Modified:
branches/each-ds/src/bin/auth/auth_srv.cc
branches/each-ds/src/lib/auth/cpp/data_source_sqlite3.cc
Modified: branches/each-ds/src/bin/auth/auth_srv.cc
==============================================================================
--- branches/each-ds/src/bin/auth/auth_srv.cc (original)
+++ branches/each-ds/src/bin/auth/auth_srv.cc Tue Feb 9 12:30:06 2010
@@ -46,6 +46,8 @@
using namespace isc::dns;
using namespace isc::dns::rdata;
using namespace isc::data;
+
+//#define VERBOSE 1
AuthSrv::AuthSrv(int port) {
int s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
@@ -96,7 +98,9 @@
return;
}
+#ifdef VERBOSE
cout << "[AuthSrv] received a message:\n" << msg.toText() << endl;
+#endif
if (msg.getRRCount(Section::QUESTION()) != 1) {
return;
@@ -115,9 +119,11 @@
OutputBuffer obuffer(4096);
MessageRenderer renderer(obuffer);
msg.toWire(renderer);
+#ifdef VERBOSE
cout << "sending a response (" <<
boost::lexical_cast<string>(obuffer.getLength())
<< " bytes):\n" << msg.toText() << endl;
+#endif
sendto(s, obuffer.getData(), obuffer.getLength(), 0, sa, sa_len);
}
}
Modified: branches/each-ds/src/lib/auth/cpp/data_source_sqlite3.cc
==============================================================================
--- branches/each-ds/src/lib/auth/cpp/data_source_sqlite3.cc (original)
+++ branches/each-ds/src/lib/auth/cpp/data_source_sqlite3.cc Tue Feb 9 12:30:06 2010
@@ -127,8 +127,6 @@
rrset->setTTL(RRTTL(target_ttl));
target.push_back(rrset);
}
-
- cout << "RETURNED " << rows << " ROWS" << endl;
return (rows);
}
More information about the bind10-changes
mailing list