mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
Converting logging enums to constants
This commit is contained in:
@@ -3,11 +3,9 @@ package logs
|
||||
// A Level is a logging priority. Lower levels are more important.
|
||||
// All levels have been multipled by -1 to ensure compatibilty
|
||||
// between zapcore and logr
|
||||
type Level int
|
||||
|
||||
const (
|
||||
ErrorLevel Level = iota - 2
|
||||
WarnLevel
|
||||
InfoLevel
|
||||
DebugLevel
|
||||
ErrorLevel = -2
|
||||
WarnLevel = -1
|
||||
InfoLevel = 0
|
||||
DebugLevel = 1
|
||||
)
|
||||
|
Reference in New Issue
Block a user