- Add verbose log message when auth zone file is written, at level 4.

This commit is contained in:
W.C.A. Wijngaards 2019-07-29 09:25:49 +02:00
parent 5f5c00203e
commit 7d5ab2f4de
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,6 @@
29 July 2019: Wouter
- Add verbose log message when auth zone file is written, at level 4.
23 July 2019: Wouter 23 July 2019: Wouter
- Fix question section mismatch in local zone redirect. - Fix question section mismatch in local zone redirect.

View file

@ -4867,6 +4867,11 @@ xfr_write_after_update(struct auth_xfer* xfr, struct module_env* env)
if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename,
cfg->chrootdir, strlen(cfg->chrootdir)) == 0) cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
zfilename += strlen(cfg->chrootdir); zfilename += strlen(cfg->chrootdir);
if(verbosity >= VERB_ALGO) {
char nm[255+1];
dname_str(z->name, nm);
verbose(VERB_ALGO, "write zonefile %s for %s", zfilename, nm);
}
/* write to tempfile first */ /* write to tempfile first */
if((size_t)strlen(zfilename) + 16 > sizeof(tmpfile)) { if((size_t)strlen(zfilename) + 16 > sizeof(tmpfile)) {