From ff4dcb14c6d4d8caccff37f9589827387f7ba480 Mon Sep 17 00:00:00 2001 From: Aleksandr Nekrasov Date: Mon, 12 Feb 2024 13:14:57 +0700 Subject: [PATCH] fix(otelzap): preserve logs level on method With (#16) Co-authored-by: Aleksandr Nekrasov --- otelzap/core.go | 1 + 1 file changed, 1 insertion(+) diff --git a/otelzap/core.go b/otelzap/core.go index f60475e..c4887b2 100644 --- a/otelzap/core.go +++ b/otelzap/core.go @@ -54,6 +54,7 @@ func (c *otlpCore) With(f []zapcore.Field) zapcore.Core { return &otlpCore{ logger: c.logger, fields: fields, + level: c.level, } }