追加topic和source内容

master
wujianhua 1 year ago
parent d987c1cad3
commit 7e67dda70b
  1. 2
      sls/producer.go

@ -91,7 +91,7 @@ func (s *slsProducer) Close() error {
// SendLog 发送普通日志
func (s *slsProducer) SendLog(topic, source string, log *sls.Log) error {
err := s.pr.SendLog(s.opts.project, s.opts.logstore, "", "", log)
err := s.pr.SendLog(s.opts.project, s.opts.logstore, topic, source, log)
if err != nil {
return err
}

Loading…
Cancel
Save