update go to 1.12 (#10382)
* update go to 1.12 * update per feedback * fix test * revert test changes * remove zap.AddCallerSkip(1)
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
7f9e1273d7
Коммит
6a3fdbd489
@@ -136,7 +136,7 @@ func TestLoggingAfterInitialized(t *testing.T) {
|
||||
|
||||
actual = strings.Join(actualRows, "\n")
|
||||
}
|
||||
require.Equal(t, testCase.ExpectedLogs, strings.Split(actual, "\n"))
|
||||
require.ElementsMatch(t, testCase.ExpectedLogs, strings.Split(actual, "\n"))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -102,7 +102,6 @@ func NewLogger(config *LoggerConfiguration) *Logger {
|
||||
combinedCore := zapcore.NewTee(cores...)
|
||||
|
||||
logger.zap = zap.New(combinedCore,
|
||||
zap.AddCallerSkip(1),
|
||||
zap.AddCaller(),
|
||||
)
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ func NewTestingLogger(tb testing.TB) *Logger {
|
||||
logWriterCore := zapcore.NewCore(makeEncoder(true), logWriterSync, testingLogger.consoleLevel)
|
||||
|
||||
testingLogger.zap = zap.New(logWriterCore,
|
||||
zap.AddCallerSkip(1),
|
||||
zap.AddCaller(),
|
||||
)
|
||||
return testingLogger
|
||||
|
||||
Ссылка в новой задаче
Block a user