fix(contrib/log/tencent): tencentcloud-cls-sdk-go 为异步上传,需要显式调用"Start"方法开启才会生效 (#2514)

pull/2598/head
刘思圆 2 years ago committed by GitHub
parent 271b6c2924
commit a3f24ee704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      contrib/log/tencent/tencent.go

@ -103,6 +103,7 @@ func NewLogger(options ...Option) (Logger, error) {
if err != nil {
return nil, err
}
producerInst.Start()
return &tencentLog{
producer: producerInst,
opts: opts,

Loading…
Cancel
Save