fix bug with nil field

This commit is contained in:
Erik Winter 2021-05-13 10:37:48 +02:00
parent 19e4740055
commit 5ea6a8b1a1
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func (kl *GoKitIOLogger) Error(message string) {
}
func (kl *GoKitIOLogger) log(message string) {
kv := make([]interface{}, len(kl.fields)*2)
kv := make([]interface{}, 0)
for k, v := range kl.fields {
kv = append(kv, k, v)
}