Skip to content

Commit ff4dcb1

Browse files
chameleon82Aleksandr Nekrasov
andauthored
fix(otelzap): preserve logs level on method With (#16)
Co-authored-by: Aleksandr Nekrasov <[email protected]>
1 parent ab3f752 commit ff4dcb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

otelzap/core.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func (c *otlpCore) With(f []zapcore.Field) zapcore.Core {
5454
return &otlpCore{
5555
logger: c.logger,
5656
fields: fields,
57+
level: c.level,
5758
}
5859
}
5960

0 commit comments

Comments
 (0)