Skip to content
Snippets Groups Projects
Commit a6fcdc0d authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

QUERY_TRACE: disable with -DNDEBUG

At least for now.  It didn't compile.
parent 1d7520ef
Branches
Tags
1 merge request!167TRACE policy
Pipeline #1184 passed with stages
in 2 minutes and 19 seconds
......@@ -745,12 +745,12 @@ static int resolve(kr_layer_t *ctx, knot_pkt_t *pkt)
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;
}
......
......@@ -51,7 +51,7 @@
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 */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment