From: Arran Cudbard-Bell Date: Wed, 20 Jan 2021 14:10:21 +0000 (+0000) Subject: Remember parent's log lvl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2904a49d2c549ffc2d7a9ee2045c50958b444a50;p=thirdparty%2Ffreeradius-server.git Remember parent's log lvl --- diff --git a/src/lib/server/request.c b/src/lib/server/request.c index 8fe152b65c1..2a1797746d1 100644 --- a/src/lib/server/request.c +++ b/src/lib/server/request.c @@ -92,6 +92,7 @@ static inline void CC_HINT(always_inline) request_log_init_child(request_t *chil memcpy(&(child->log), &(parent->log), sizeof(child->log)); child->log.unlang_indent = 0; /* Apart from the indent which we reset */ child->log.module_indent = 0; /* Apart from the indent which we reset */ + child->log.lvl = parent->log.lvl; } static inline void CC_HINT(always_inline) request_log_init_detachable(request_t *child, request_t const *parent) @@ -102,6 +103,7 @@ static inline void CC_HINT(always_inline) request_log_init_detachable(request_t */ 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)