]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1343. [func] Log successful notifies received (info). Adjust log level
authorMark Andrews <marka@isc.org>
Mon, 29 Jul 2002 05:15:32 +0000 (05:15 +0000)
committerMark Andrews <marka@isc.org>
Mon, 29 Jul 2002 05:15:32 +0000 (05:15 +0000)
                        for failed notifies to notice.

CHANGES
bin/named/notify.c

diff --git a/CHANGES b/CHANGES
index 0e6309e57d45bb40e63bfcdf0ba2fb2ecd8bc646..542e53353a9af625aac0d2d80192d083fcc069ff 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1343.  [func]          Log successful notifies received (info).  Adjust log level
+                       for failed notifies to notice.
+
 1342.  [func]          Log remote address with TCP dispatch failures.
 
 1341.  [func]          Allow a rate limiter to be stalled.
index 7bd79a546c887ab10af3ca8ed77597317764dcf7..9d6343812bf34598879125b305f6603241d576b9 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: notify.c,v 1.26 2001/12/10 23:09:23 marka Exp $ */
+/* $Id: notify.c,v 1.27 2002/07/29 05:15:32 marka Exp $ */
 
 #include <config.h>
 
@@ -83,7 +83,7 @@ ns_notify_start(ns_client_t *client) {
         */
        result = dns_message_firstname(request, DNS_SECTION_QUESTION);
        if (result != ISC_R_SUCCESS) {
-               notify_log(client, ISC_LOG_INFO, "notify question section empty");
+               notify_log(client, ISC_LOG_NOTICE, "notify question section empty");
                goto failure;
        }
 
@@ -94,7 +94,7 @@ ns_notify_start(ns_client_t *client) {
        dns_message_currentname(request, DNS_SECTION_QUESTION, &zonename);
        zone_rdataset = ISC_LIST_HEAD(zonename->list);
        if (ISC_LIST_NEXT(zone_rdataset, link) != NULL) {
-               notify_log(client, ISC_LOG_INFO,
+               notify_log(client, ISC_LOG_NOTICE,
                           "notify question section contains multiple RRs");
                goto failure;
        }
@@ -102,14 +102,14 @@ ns_notify_start(ns_client_t *client) {
        /* The zone section must have exactly one name. */
        result = dns_message_nextname(request, DNS_SECTION_ZONE);
        if (result != ISC_R_NOMORE) {
-               notify_log(client, ISC_LOG_INFO,
+               notify_log(client, ISC_LOG_NOTICE,
                           "notify question section contains multiple RRs");
                goto failure;
        }
 
        /* The one rdataset must be an SOA. */
        if (zone_rdataset->type != dns_rdatatype_soa) {
-               notify_log(client, ISC_LOG_INFO,
+               notify_log(client, ISC_LOG_NOTICE,
                           "notify question section contains no SOA");
                goto failure;
        }
@@ -118,7 +118,7 @@ ns_notify_start(ns_client_t *client) {
                             &zone);
        if (result != ISC_R_SUCCESS) {
                dns_name_format(zonename, str, sizeof(str));
-               notify_log(client, ISC_LOG_INFO,
+               notify_log(client, ISC_LOG_NOTICE,
                           "received notify for zone '%s': not authoritative",
                           str);
                goto failure;
@@ -128,12 +128,14 @@ ns_notify_start(ns_client_t *client) {
        case dns_zone_master:
        case dns_zone_slave:
        case dns_zone_stub:     /* Allow dialup passive to work. */
+               notify_log(client, ISC_LOG_INFO, "received notify for zone '%s'",
+                          str);
                respond(client, dns_zone_notifyreceive(zone,
                        ns_client_getsockaddr(client), request));
                break;
        default:
                dns_name_format(zonename, str, sizeof(str));
-               notify_log(client, ISC_LOG_INFO,
+               notify_log(client, ISC_LOG_NOTICE,
                           "received notify for zone '%s': not authoritative",
                           str);
                goto failure;