feat 阿里云观测平台

This commit is contained in:
2026-01-24 15:19:45 +08:00
parent 6c124f9f3f
commit 0f1cfb15ac
3 changed files with 11 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ type TopicQuestionAnswer struct {
func startConsumer() {
kafka.NewConsumer().Consume("qgdzs.question.answer", func(ctx context.Context, msg *sarama.ConsumerMessage) error {
log.Infof("qgdzs.question.answer: %s", string(msg.Value))
log.Infof("Kafka topic: qgdzs.question.answer: %s", string(msg.Value))
data := &TopicQuestionAnswer{}
if err := json.Unmarshal(msg.Value, &data); err != nil {
return utils.ErrorsWrap(err)