瀏覽代碼

Use sarama.Logger.Println rather than log.Println

Burke Libbey 12 年之前
父節點
當前提交
843a3d9642
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      consumer.go

+ 1 - 3
consumer.go

@@ -1,7 +1,5 @@
 package sarama
 
-import "log"
-
 // OffsetMethod is passed in ConsumerConfig to tell the consumer how to determine the starting offset.
 type OffsetMethod int
 
@@ -76,7 +74,7 @@ func NewConsumer(client *Client, topic string, partition int32, group string, co
 	}
 
 	if config.MaxWaitTime < 100 {
-		log.Println("ConsumerConfig{MaxWaitTime} is very low. This can cause high CPU and network usage. Consider increasing this value.")
+		Logger.Println("ConsumerConfig{MaxWaitTime} is very low. This can cause high CPU and network usage. Consider increasing this value.")
 	}
 
 	if config.DefaultFetchSize < 0 {