From eba5bb55150a43e0ec2d1db42fb8f27f5b9c3f4c Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Thu, 3 Oct 2024 16:13:18 -0700 Subject: [PATCH] chore: add debugging and logging when no valid token is found (#25380) --- livestream/kafka.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/livestream/kafka.go b/livestream/kafka.go index 71a00094f77b4..f8af88ea249c3 100644 --- a/livestream/kafka.go +++ b/livestream/kafka.go @@ -112,6 +112,8 @@ func (c *PostHogKafkaConsumer) Consume() { if phEvent.Token == "" { if tokenValue, ok := phEvent.Properties["token"].(string); ok { phEvent.Token = tokenValue + } else { + log.Printf("No valid token found in event %s", string(msg.Value)) } }