At least for now. It didn't compile.
if (!query) {
return ctx->state;
}
-
+#ifndef NDEBUG
if (query->flags & QUERY_TRACE) {
VERBOSE_MSG("<= answer received:\n");
kr_pkt_print(pkt);
}
-
+#endif
if (query->flags & (QUERY_RESOLVED|QUERY_BADCOOKIE_AGAIN)) {
return ctx->state;
}
X(BADCOOKIE_AGAIN, 1 << 22) /**< Query again because bad cookie returned. */ \
X(CNAME, 1 << 23) /**< Query response contains CNAME in answer section. */ \
X(REORDER_RR, 1 << 24) /**< Reorder cached RRs. */ \
- X(TRACE, 1 << 25) /**< Log answer with kr_verbose_log(). */
+ X(TRACE, 1 << 25) /**< Log answer with kr_verbose_log(), unless -DNDEBUG. */
/* 1 << 31 Used by ../modules/dns64/dns64.lua */
/** Query flags */