mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 23:41:09 +02:00
check level, add test
This commit is contained in:
parent
ce1dc56f49
commit
c33b4dc5f6
2 changed files with 31 additions and 0 deletions
|
@ -23,6 +23,9 @@ func (c certMagicLoggerCore) With(fs []zapcore.Field) zapcore.Core {
|
|||
}
|
||||
|
||||
func (c certMagicLoggerCore) Check(e zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry {
|
||||
if !c.Enabled(e.Level) {
|
||||
return ce
|
||||
}
|
||||
return ce.AddCore(e, c)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue