]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
log the reason for falling back to AXFR from IXFR at level info
authorEvan Hunt <each@isc.org>
Sat, 2 Jul 2022 20:09:25 +0000 (13:09 -0700)
committerEvan Hunt <each@isc.org>
Tue, 12 Jul 2022 23:02:54 +0000 (16:02 -0700)
messages indicating the reason for a fallback to AXFR (i.e, because
the requested serial number is not present in the journal, or because
the size of the IXFR response would exceeed "max-ixfr-ratio") are now
logged at level info instead of debug(4).

CHANGES
lib/ns/xfrout.c

diff --git a/CHANGES b/CHANGES
index 9d936a7fe853b312e326c95c8479faa5cad3ed58..96d37cabbd57b393147d3e576e09e194bcff796f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+5924.  [func]          When it's necessary to use AXFR to respond to an
+                       IXFR request, a message explaining the reason
+                       is now logged at level info. [GL #2683]
+
 5923.  [bug]           Fix inheritance for dnssec-policy when checking for
                        inline-signing. [GL #3438]
 
index e3290b0b1e1243c1cef790658022d6ae8c21c67d..2e101a714f59a43c6440a61b436ef3aeca72a1c3 100644 (file)
@@ -1029,7 +1029,7 @@ got_soa:
                }
                if (result == ISC_R_NOTFOUND || result == ISC_R_RANGE) {
                        xfrout_log1(client, question_name, question_class,
-                                   ISC_LOG_DEBUG(4),
+                                   ISC_LOG_INFO,
                                    "IXFR version not in journal, "
                                    "falling back to AXFR");
                        mnemonic = "AXFR-style IXFR";
@@ -1044,7 +1044,7 @@ got_soa:
                                data_stream->methods->destroy(&data_stream);
                                data_stream = NULL;
                                xfrout_log1(client, question_name,
-                                           question_class, ISC_LOG_DEBUG(4),
+                                           question_class, ISC_LOG_INFO,
                                            "IXFR delta size (%zu bytes) "
                                            "exceeds the maximum ratio to "
                                            "database size "