From 51b59feb4bb7dfe3f0ec0179899a2c7554afb533 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 3 Feb 2017 17:18:35 +0100 Subject: [PATCH] trust anchors: verbose-log the RRset when adding --- lib/dnssec/ta.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, -- 2.47.3