mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2025-02-21 23:23:13 +03:00
fix lint
This commit is contained in:
parent
f5e2bfefb2
commit
92717979a2
@ -136,7 +136,7 @@ linters-settings:
|
||||
check-generated: false
|
||||
default-signifies-exhaustive: false
|
||||
funlen:
|
||||
lines: 60
|
||||
lines: 65
|
||||
statements: 40
|
||||
gocognit:
|
||||
min-complexity: 25
|
||||
|
@ -59,16 +59,12 @@ type bufferLogger struct {
|
||||
}
|
||||
|
||||
// newBufferLoggerSilent returns new BufferedLogger instance which won't duplicate entries to stdout/stderr.
|
||||
func newBufferLoggerSilent(level ...zapcore.Level) *bufferLogger {
|
||||
lvl := zapcore.DebugLevel
|
||||
if len(level) > 0 {
|
||||
lvl = level[0]
|
||||
}
|
||||
func newBufferLoggerSilent() *bufferLogger {
|
||||
bl := &bufferLogger{}
|
||||
bl.Logger = zap.New(
|
||||
zapcore.NewCore(
|
||||
NewJSONWithContextEncoder(
|
||||
EncoderConfigJSON()), &bl.buf, lvl))
|
||||
EncoderConfigJSON()), &bl.buf, zapcore.DebugLevel))
|
||||
return bl
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user