From: Vladimír Čunát Date: Fri, 3 Feb 2017 16:18:35 +0000 (+0100) Subject: trust anchors: verbose-log the RRset when adding X-Git-Tag: v1.3.0~23^2~83^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51b59feb4bb7dfe3f0ec0179899a2c7554afb533;p=thirdparty%2Fknot-resolver.git trust anchors: verbose-log the RRset when adding --- diff --git a/lib/dnssec/ta.c b/lib/dnssec/ta.c index 4192d8bf6..852e84ed8 100644 --- a/lib/dnssec/ta.c +++ b/lib/dnssec/ta.c @@ -23,6 +23,7 @@ #include "lib/defines.h" #include "lib/dnssec/ta.h" +#include "lib/utils.h" knot_rrset_t *kr_ta_get(map_t *trust_anchors, const knot_dname_t *name) { @@ -74,10 +75,13 @@ static int insert_ta(map_t *trust_anchors, const knot_dname_t *name, knot_rrset_free(&ta_rr, NULL); return kr_error(ENOMEM); } + WITH_VERBOSE { + kr_rrset_print(ta_rr, "[ ta ]: new trust anchor state:\n"); + } if (is_new_key) { return map_set(trust_anchors, (const char *)name, ta_rr); } - return kr_ok(); + return kr_ok(); } int kr_ta_add(map_t *trust_anchors, const knot_dname_t *name, uint16_t type,