Commit ab374dd5 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Add logging for Kafka message consumption

- Include informative log message when starting Kafka message consumption
- Enhance observability of log consumer service startup process
parent b0527e79
......@@ -116,6 +116,7 @@ func NewLogConsumerService(db *gorm.DB, esStore *esStore.ESStore) *LogConsumerSe
}
func (s *LogConsumerService) Consume() {
log.Info().Msg("start consume kafka message")
for {
m, err := s.consumer.ReadMessage(context.Background())
if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment