From: Michael Graff Date: Sun, 8 Sep 2002 18:37:47 +0000 (+0000) Subject: change many debug(3) to debug(1), and several debug(*) to info X-Git-Tag: v9.2.3rc1~104^2~348 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=c68b63e0bec997337e4597c2f205eea9f9e60791;p=thirdparty%2Fbind9.git change many debug(3) to debug(1), and several debug(*) to info --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 17bfeb1f586..7e6e3e0187e 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.375 2002/08/06 02:16:09 marka Exp $ */ +/* $Id: zone.c,v 1.376 2002/09/08 18:37:47 explorer Exp $ */ #include @@ -4432,7 +4432,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from, /* Accept notify. */ } else if (i >= zone->masterscnt) { UNLOCK_ZONE(zone); - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_INFO, "refused notify from non-master: %s", fromtext); return (DNS_R_REFUSED); } @@ -4461,7 +4461,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from, RUNTIME_CHECK(result == ISC_R_SUCCESS); serial = soa.serial; if (isc_serial_le(serial, zone->serial)) { - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_INFO, "notify from %s: " "zone is up to date", fromtext); @@ -4480,7 +4480,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from, DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_NEEDREFRESH); zone->notifyfrom = *from; UNLOCK_ZONE(zone); - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_INFO, "notify from %s: refresh in progress, " "refresh check queued", fromtext); @@ -4932,7 +4932,7 @@ notify_done(isc_task_t *task, isc_event_t *event) { "notify response from %s: %.*s", addrbuf, (int)buf.used, rcode); else - notify_log(notify->zone, ISC_LOG_DEBUG(1), + notify_log(notify->zone, ISC_LOG_DEBUG(2), "notify to %s failed: %s", addrbuf, dns_result_totext(result)); @@ -5352,18 +5352,18 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) { * Decide whether we should request IXFR or AXFR. */ if (zone->db == NULL) { - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_DEBUG(1), "no database exists yet, " "requesting AXFR of " "initial version from %s", mastertext); xfrtype = dns_rdatatype_axfr; } else if (dns_zone_isforced(zone)) { - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_DEBUG(1), "forced reload, requesting AXFR of " "initial version from %s", mastertext); xfrtype = dns_rdatatype_axfr; } else if (DNS_ZONE_FLAG(zone, DNS_ZONEFLAG_NOIXFR)) { - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_DEBUG(1), "retrying with AXFR from %s due to " "previous IXFR failure", mastertext); xfrtype = dns_rdatatype_axfr; @@ -5380,13 +5380,13 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) { use_ixfr = zone->view->requestixfr; } if (use_ixfr == ISC_FALSE) { - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_DEBUG(1), "IXFR disabled, " "requesting AXFR from %s", mastertext); xfrtype = dns_rdatatype_axfr; } else { - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_DEBUG(1), "requesting IXFR from %s", mastertext); xfrtype = dns_rdatatype_ixfr; @@ -5985,7 +5985,7 @@ zmgr_resume_xfrs(dns_zonemgr_t *zmgr) { */ continue; } else { - dns_zone_log(zone, ISC_LOG_DEBUG(3), + dns_zone_log(zone, ISC_LOG_DEBUG(1), "starting zone transfer: %s", isc_result_totext(result)); break; @@ -6084,6 +6084,7 @@ zmgr_start_xfrin_ifquota(dns_zonemgr_t *zmgr, dns_zone_t *zone) { */ isc_refcount_increment(&zone->erefs, NULL); isc_task_send(zone->task, &e); + dns_zone_log(zone, ISC_LOG_INFO, "Transfer started."); UNLOCK_ZONE(zone); return (ISC_R_SUCCESS);