VOL-3978 - change the version of build tools
- fixed two minor errors in code that go 1.16 vet caught
Change-Id: Ibc5d7e966cb89bdb557a640fac70e2101a7b27b6
diff --git a/pkg/log/log.go b/pkg/log/log.go
index b8d498c..7b1a123 100644
--- a/pkg/log/log.go
+++ b/pkg/log/log.go
@@ -54,11 +54,12 @@
"context"
"errors"
"fmt"
- zp "go.uber.org/zap"
- zc "go.uber.org/zap/zapcore"
"path"
"runtime"
"strings"
+
+ zp "go.uber.org/zap"
+ zc "go.uber.org/zap/zapcore"
)
type LogLevel int8
@@ -217,7 +218,7 @@
case FatalLevel:
return "FATAL", nil
}
- return "", errors.New("Given LogLevel is invalid " + string(l))
+ return "", fmt.Errorf("Given LogLevel is invalid %d", l)
}
func getDefaultConfig(outputType string, level LogLevel, defaultFields Fields) zp.Config {