mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 02:19:59 -04:00
add query ID to the query trace message
Adding the query ID to the query trace message. The log is now as the
following (id is at the end):
query client=0x7f75c5017000 thread=0x7f75c6dfe680(foo.fr/A): \
client attr:0x22300, query attr:0x700, restarts:0, \
origqname:foo.fr, timer:0, authdb:0, referral:0, id:21338
This should help debugging tests, in particular to quickly get a
specific query from the logs.
This commit is contained in:
parent
2a640adbc1
commit
0b93d5725b
1 changed files with 3 additions and 2 deletions
|
|
@ -5283,12 +5283,13 @@ query_trace(query_ctx_t *qctx) {
|
|||
|
||||
snprintf(mbuf, sizeof(mbuf) - 1,
|
||||
"client attr:0x%x, query attr:0x%X, restarts:%u, "
|
||||
"origqname:%s, timer:%d, authdb:%d, referral:%d",
|
||||
"origqname:%s, timer:%d, authdb:%d, referral:%d, id:%hu",
|
||||
qctx->client->inner.attributes, qctx->client->query.attributes,
|
||||
qctx->client->query.restarts, qbuf,
|
||||
(int)qctx->client->query.timerset,
|
||||
(int)qctx->client->query.authdbset,
|
||||
(int)qctx->client->query.isreferral);
|
||||
(int)qctx->client->query.isreferral,
|
||||
qctx->client->message->id);
|
||||
CCTRACE(ISC_LOG_DEBUG(3), mbuf);
|
||||
#else /* ifdef WANT_QUERYTRACE */
|
||||
UNUSED(qctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue