envknob: use the correct key when logging (#4319)

This commit is contained in:
Maisem Ali 2022-03-29 14:04:12 -07:00 committed by GitHub
parent 309ddef852
commit f4686a76a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ func noteEnv(k, v string) {
}
mu.Lock()
defer mu.Unlock()
if _, ok := set[v]; !ok {
if _, ok := set[k]; !ok {
list = append(list, k)
}
set[k] = v