]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remember parent's log lvl
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 20 Jan 2021 14:10:21 +0000 (14:10 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 20 Jan 2021 14:10:21 +0000 (14:10 +0000)
src/lib/server/request.c

index 8fe152b65c10ee413f8dfe037a90ddd3dcf61b82..2a1797746d1bfc75c9fb3448ce92cdd6f89cafd3 100644 (file)
@@ -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)