s4 dns: Reduce test output noise by upping log level for dns_name_packet logging
authorKai Blin <kai@samba.org>
Tue, 15 Nov 2011 07:38:27 +0000 (08:38 +0100)
committerKai Blin <kai@samba.org>
Thu, 17 Nov 2011 19:10:05 +0000 (20:10 +0100)
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Nov 17 20:10:05 CET 2011 on sn-devel-104

source4/dns_server/dns_server.c

index 899ec0c1ad177297c317e3f44fbf6105235dabb9..4aecc87e99500888099e717bfd538aa2d502079e 100644 (file)
@@ -130,8 +130,9 @@ static NTSTATUS dns_process(struct dns_server *dns,
 
                return NT_STATUS_OK;
        }
-
-       NDR_PRINT_DEBUG(dns_name_packet, in_packet);
+       if (DEBUGLVL(2)) {
+               NDR_PRINT_DEBUG(dns_name_packet, in_packet);
+       }
        *out_packet = *in_packet;
        out_packet->operation |= DNS_FLAG_REPLY;
 
@@ -168,7 +169,9 @@ static NTSTATUS dns_process(struct dns_server *dns,
                out_packet->operation |= werr_to_dns_err(ret);
        }
 
-       NDR_PRINT_DEBUG(dns_name_packet, out_packet);
+       if (DEBUGLVL(2)) {
+               NDR_PRINT_DEBUG(dns_name_packet, out_packet);
+       }
        ndr_err = ndr_push_struct_blob(out, out_packet, out_packet,
                        (ndr_push_flags_fn_t)ndr_push_dns_name_packet);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {