Package list golang-github-go-kit-kit / 6a12b31
Preallocate level key interface{} value. Chris Hines 4 years ago
1 changed file(s) with 5 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
121121 return func(l *logger) { l.errNoLevel = err }
122122 }
123123
124 const levelKey = "level"
125
126124 var (
127 errorLevelValue = &levelValue{level: levelError, name: "error"}
128 warnLevelValue = &levelValue{level: levelWarn, name: "warn"}
129 infoLevelValue = &levelValue{level: levelInfo, name: "info"}
130 debugLevelValue = &levelValue{level: levelDebug, name: "debug"}
125 levelKey interface{} = "level"
126 errorLevelValue = &levelValue{level: levelError, name: "error"}
127 warnLevelValue = &levelValue{level: levelWarn, name: "warn"}
128 infoLevelValue = &levelValue{level: levelInfo, name: "info"}
129 debugLevelValue = &levelValue{level: levelDebug, name: "debug"}
131130 )
132131
133132 type level byte