From: Arran Cudbard-Bell Date: Thu, 4 Feb 2021 19:56:49 +0000 (+0000) Subject: Even detachable requests should inherit log settings from their parents X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec84ee11c9533221d520ec1a9a75c692a5ea993f;p=thirdparty%2Ffreeradius-server.git Even detachable requests should inherit log settings from their parents --- diff --git a/src/lib/server/request.c b/src/lib/server/request.c index 2a1797746d1..c9c496ac1de 100644 --- a/src/lib/server/request.c +++ b/src/lib/server/request.c @@ -97,13 +97,14 @@ static inline void CC_HINT(always_inline) request_log_init_child(request_t *chil static inline void CC_HINT(always_inline) request_log_init_detachable(request_t *child, request_t const *parent) { + request_log_init_child(child, parent); + /* * Ensure that we use our own version of the logging * information, and not the original request one. */ child->log.dst = talloc_zero(child, log_dst_t); memcpy(child->log.dst, parent->log.dst, sizeof(*child->log.dst)); - child->log.lvl = parent->log.lvl; } static inline CC_HINT(always_inline) int request_detachable_init(request_t *child, request_t *parent)