]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
lower ixfr stop messages log level to debug(1) for poll style responses
authorMark Andrews <marka@isc.org>
Thu, 2 May 2019 06:48:35 +0000 (16:48 +1000)
committerMark Andrews <marka@isc.org>
Mon, 3 Jun 2019 05:14:45 +0000 (15:14 +1000)
lib/ns/xfrout.c

index 4092d13a5d7fc735c3e6a2dff96c0fac456b51c9..17cecc311890c7072d363507e4da0d11222d16c9 100644 (file)
@@ -685,6 +685,7 @@ typedef struct {
        bool                    many_answers;
        int                     sends;          /* Send in progress */
        bool                    shuttingdown;
+       bool                    poll;
        const char              *mnemonic;      /* Style of transfer */
        struct xfr_stats        stats;          /*%< Transfer statistics */
 } xfrout_ctx_t;
@@ -1110,6 +1111,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
        } else {
                keyname[0] = '\0';
        }
+       xfr->poll = is_poll;
        if (is_poll) {
                xfrout_log1(client, question_name, question_class,
                            ISC_LOG_DEBUG(1), "IXFR poll up to date%s%s",
@@ -1239,6 +1241,7 @@ xfrout_ctx_create(isc_mem_t *mctx, ns_client_t *client, unsigned int id,
        xfr->many_answers = many_answers;
        xfr->sends = 0;
        xfr->shuttingdown = false;
+       xfr->poll = false;
        xfr->mnemonic = NULL;
        xfr->buf.base = NULL;
        xfr->buf.length = 0;
@@ -1709,7 +1712,7 @@ xfrout_senddone(isc_task_t *task, isc_event_t *event) {
                        msecs = 1;
                }
                persec = (xfr->stats.nbytes * 1000) / msecs;
-               xfrout_log(xfr, ISC_LOG_INFO,
+               xfrout_log(xfr, xfr->poll ? ISC_LOG_DEBUG(1) : ISC_LOG_INFO,
                           "%s ended: "
                           "%" PRIu64 " messages, %" PRIu64 " records, "
                           "%" PRIu64 " bytes, "