Skip to content

Commit

Permalink
chore: add debugging and logging when no valid token is found (#25380)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech authored Oct 3, 2024
1 parent d81dbbf commit eba5bb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions livestream/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit eba5bb5

Please sign in to comment.