]> 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:27:01 +0000 (16:27 -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).

(cherry picked from commit df1d81cf961b49172583e2424177b52a89caf041)

CHANGES
lib/ns/xfrout.c

diff --git a/CHANGES b/CHANGES
index 502ca3361755d1a0366f86ee0dda0d39d06fc6a9..12ceef64607d0805db405586b585fb6debec2b3d 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 2113a52d83c1b4e0c5fec094a8f6da1e662bad1d..5981b04bf776ac50d8ae19fceb4da5d5bc14fcfa 100644 (file)
@@ -1046,7 +1046,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";
@@ -1061,7 +1061,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 "