From 36c4b6d13e65197f3b1d5c381bddc3ad6bb67fc8 Mon Sep 17 00:00:00 2001 From: Andreas Humenberger Date: Thu, 18 Jul 2024 13:23:34 +0200 Subject: [PATCH] fix, Copy also logging flags when cloning a log file handler --- log/logger.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/log/logger.go b/log/logger.go index 193ff95b..6b46b584 100644 --- a/log/logger.go +++ b/log/logger.go @@ -218,6 +218,8 @@ func (h *spawningHandler) Clone() (clone *spawningHandler) { attributes: maps.Clone(h.attributes), logFileSpawners: slices.Clone(h.logFileSpawners), + + flags: h.flags, } }