Better log output for uint*

This commit is contained in:
Jinzhu 2019-02-10 15:39:40 +08:00
parent 8494ecdc98
commit 906799fef2
1 changed files with 1 additions and 2 deletions

View File

@ -64,9 +64,8 @@ var LogFormatter = func(values ...interface{}) (messages []interface{}) {
} }
} else { } else {
switch value.(type) { switch value.(type) {
case int8, int, int16, int32, int64, float32, float64, bool: case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, bool:
formattedValues = append(formattedValues, fmt.Sprintf("%v", value)) formattedValues = append(formattedValues, fmt.Sprintf("%v", value))
break
default: default:
formattedValues = append(formattedValues, fmt.Sprintf("'%v'", value)) formattedValues = append(formattedValues, fmt.Sprintf("'%v'", value))
} }