1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s4:dns_server: less noisy, more informative debug messages

This shouldn't have been DBG_ERR, and it might as well say something
about the tombstone.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15630

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Apr 12 15:18:05 UTC 2024 on atb-devel-224
This commit is contained in:
Douglas Bagnall 2024-04-11 11:52:14 +12:00 committed by Andreas Schneider
parent 81598b4245
commit dde973d170

View File

@ -1034,10 +1034,11 @@ WERROR dns_common_replace(struct ldb_context *samdb,
* record.
*/
if (records[i].data.EntombedTime != 0) {
if (rec_count != 1) {
DBG_ERR("tombstone record has %u neighbour "
"records.\n",
rec_count - 1);
if (rec_count != 1 && DEBUGLVL(DBGLVL_NOTICE)) {
DBG_NOTICE("tombstone record [%u] has "
"%u neighbour records.\n",
i, rec_count - 1);
NDR_PRINT_DEBUG(dnsp_DnssrvRpcRecord, &records[i]);
}
was_tombstoned = true;
}