pull/2839/head
songzhibin97 2 years ago
parent 3e534dc2c3
commit 1e2ccc9d27
  1. 2
      contrib/log/aliyun/aliyun.go
  2. 1
      contrib/log/tencent/tencent.go

@ -16,7 +16,6 @@ import (
// Logger see more detail https://github.com/aliyun/aliyun-log-go-sdk
type Logger interface {
log.Logger
GetProducer() *producer.Producer
Close() error
}
@ -82,7 +81,6 @@ func (a *aliyunLog) Close() error {
}
func (a *aliyunLog) Log(level log.Level, keyvals ...interface{}) error {
contents := make([]*sls.LogContent, 0, len(keyvals)/2+1)
if (len(keyvals) & 1) == 1 {
keyvals = append(keyvals, "KEYVALS UNPAIRED")

@ -14,7 +14,6 @@ import (
type Logger interface {
log.Logger
GetProducer() *cls.AsyncProducerClient
Close() error
}

Loading…
Cancel
Save