summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-03-11 00:25:05 +0100
committerKai Blin <kai@samba.org>2012-03-11 00:31:38 +0100
commit1e6ef242ec65e4f8e9c8ffa44a09581b28c2599a (patch)
treefbcf8fa3f51591280a62076492b41cad3c624912
parenta4bc7dc281237c88682de796691cb458e4802e02 (diff)
downloadsamba-1e6ef242ec65e4f8e9c8ffa44a09581b28c2599a.tar.gz
samba-1e6ef242ec65e4f8e9c8ffa44a09581b28c2599a.tar.bz2
samba-1e6ef242ec65e4f8e9c8ffa44a09581b28c2599a.zip
s4 dns: Be less chatty during tests
-rw-r--r--source4/dns_server/dns_update.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index f103d06b0a..ca1708b060 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -386,8 +386,10 @@ static WERROR handle_one_update(struct dns_server *dns,
WERROR werror;
bool needs_add = false;
- DEBUG(1, ("Looking at record: \n"));
- NDR_PRINT_DEBUG(dns_res_rec, discard_const(update));
+ DEBUG(2, ("Looking at record: \n"));
+ if (DEBUGLVL(2)) {
+ NDR_PRINT_DEBUG(dns_res_rec, discard_const(update));
+ }
switch (update->rr_type) {
case DNS_QTYPE_A:
@@ -700,7 +702,7 @@ WERROR dns_server_process_update(struct dns_server *dns,
return DNS_ERR(FORMAT_ERROR);
}
- DEBUG(0, ("Got a dns update request.\n"));
+ DEBUG(2, ("Got a dns update request.\n"));
for (z = dns->zones; z != NULL; z = z->next) {
bool match;
@@ -732,7 +734,7 @@ WERROR dns_server_process_update(struct dns_server *dns,
* key-based GSSAPI, key-based bind-style TSIG and "never" as
* smb.conf options. */
if (lpcfg_allow_dns_updates(dns->task->lp_ctx) != DNS_UPDATE_ON) {
- DEBUG(0, ("Update not allowed."));
+ DEBUG(0, ("Update not allowed.\n"));
return DNS_ERR(REFUSED);
}