From a889ca2430cd76b7a4a44e4b4eccc9a2aeb57db3 Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Tue, 11 Feb 2020 12:30:45 -0800 Subject: [PATCH] test(logger): fix unit tests --- zerolog_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zerolog_test.go b/zerolog_test.go index aec5d0c..d0323ca 100644 --- a/zerolog_test.go +++ b/zerolog_test.go @@ -57,6 +57,8 @@ func TestWithLevelFieldName(t *testing.T) { l := NewLogger(WithLevelFieldName("severity")) l.Logf(logger.InfoLevel, "testing: %s", "WithLevelFieldName") + // reset `LevelFieldName` to make other tests pass. + NewLogger(WithLevelFieldName("level")) } func TestWithFields(t *testing.T) {