(ent zapcore.Entry, fields []zapcore.Field)
| 107 | } |
| 108 | |
| 109 | func (c *redactingCore) Write(ent zapcore.Entry, fields []zapcore.Field) error { |
| 110 | if r := loadRedactor(); r != nil { |
| 111 | r.RedactEntry(&ent) |
| 112 | for i := range fields { |
| 113 | r.RedactField(&fields[i]) |
| 114 | } |
| 115 | } |
| 116 | return c.Core.Write(ent, fields) |
| 117 | } |
| 118 | |
| 119 | // redactingWriter wraps a zapcore.WriteSyncer and runs the active Redactor's |
| 120 | // RedactEncoded pass on every byte slice before it reaches the sink. This is |
nothing calls this directly
no test coverage detected