Skip to content

Commit

Permalink
test(zap dev prefix): fix funcFieldValue to use typev1.Val.GetStr
Browse files Browse the repository at this point in the history
  • Loading branch information
KevRiver committed Dec 17, 2024
1 parent 6c430cf commit 21b2f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zap_development_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func Test_tryZapDevPrefix(t *testing.T) {
func findFieldValue(ev *typesv1.StructuredLogEvent, field string) string {
for _, kv := range ev.Kvs {
if kv.Key == field {
return kv.Value.String()
return kv.Value.GetStr()
}
}
return ""
Expand Down

0 comments on commit 21b2f1f

Please sign in to comment.