From 96058944631a14488502c2e803f1d4f124fdb337 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 13 Jun 2023 10:26:20 -0700 Subject: [PATCH] Force Error Log if NewEventList attempts to publish an invalid field --- event/eventmanager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event/eventmanager.go b/event/eventmanager.go index 26c6c2a..04f506d 100644 --- a/event/eventmanager.go +++ b/event/eventmanager.go @@ -46,6 +46,8 @@ func NewEventList(eventType Type, args ...interface{}) Event { val, vok := args[i+1].(string) if kok && vok { data[key] = val + } else { + log.Errorf("attempted to send a field that could not be parsed to a string: %v %v", args[i], args[i+1]) } } return Event{EventType: eventType, EventID: GetRandNumber().String(), Data: data}