diff --git a/contrib/log/aliyun/aliyun.go b/contrib/log/aliyun/aliyun.go index 17cadea37..70a30ce23 100644 --- a/contrib/log/aliyun/aliyun.go +++ b/contrib/log/aliyun/aliyun.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") diff --git a/contrib/log/tencent/tencent.go b/contrib/log/tencent/tencent.go index e7b61d832..6014c0ca3 100644 --- a/contrib/log/tencent/tencent.go +++ b/contrib/log/tencent/tencent.go @@ -14,7 +14,6 @@ import ( type Logger interface { log.Logger - GetProducer() *cls.AsyncProducerClient Close() error }