0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 13:39:22 +01:00

chore: add debugging and logging when no valid token is found (#25380)

This commit is contained in:
James Greenhill 2024-10-03 16:13:18 -07:00 committed by GitHub
parent d81dbbf220
commit eba5bb5515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))
}
}