diff --git a/src/responder/common/cache_req/cache_req.c b/src/responder/common/cache_req/cache_req.c index f1b63d9de1..3a575cf51a 100644 --- a/src/responder/common/cache_req/cache_req.c +++ b/src/responder/common/cache_req/cache_req.c @@ -1120,7 +1120,8 @@ struct tevent_req *cache_req_send(TALLOC_CTX *mem_ctx, } state->first_iteration = true; - CACHE_REQ_DEBUG(SSSDBG_TRACE_FUNC, cr, "New request '%s'\n", cr->reqname); + SSS_REQ_TRACE_CID_CR(SSSDBG_TRACE_FUNC, cr, "New request [CID #%u] '%s'\n", + rctx->client_id_num, cr->reqname); ret = cache_req_is_well_known_object(state, cr, &result); if (ret == EOK) { diff --git a/src/responder/common/cache_req/cache_req_private.h b/src/responder/common/cache_req/cache_req_private.h index 8ce10c2fbd..4ea5ab2498 100644 --- a/src/responder/common/cache_req/cache_req_private.h +++ b/src/responder/common/cache_req/cache_req_private.h @@ -29,6 +29,10 @@ #define CACHE_REQ_DEBUG(level, cr, fmt, ...) \ DEBUG(level, "CR #%u: " fmt, (cr)->reqid, ##__VA_ARGS__) +/* Tracing message, changing this can break log parsing tools */ +#define SSS_REQ_TRACE_CID_CR(level, cr, fmt, ...) \ + CACHE_REQ_DEBUG(level, cr, "REQ_TRACE: " fmt, ##__VA_ARGS__) + struct cache_req { /* Provided input. */ struct cache_req_data *data;