From 9269027509f7a865e26cbb3dc8272a26383da9fe Mon Sep 17 00:00:00 2001 From: Jehiah Czebotar Date: Mon, 29 Jan 2018 16:52:16 -0500 Subject: [PATCH] nsq_tail: mv stdout logging to stderr --- apps/nsq_tail/nsq_tail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nsq_tail/nsq_tail.go b/apps/nsq_tail/nsq_tail.go index 5af0c049f..36b38b9f2 100644 --- a/apps/nsq_tail/nsq_tail.go +++ b/apps/nsq_tail/nsq_tail.go @@ -35,7 +35,7 @@ func init() { } type TailHandler struct { - topicName string + topicName string totalMessages int messagesShown int } @@ -107,7 +107,7 @@ func main() { consumers := []*nsq.Consumer{} for i := 0; i < len(topics); i += 1 { - fmt.Printf("Adding consumer for topic: %s\n", topics[i]) + log.Printf("Adding consumer for topic: %s\n", topics[i]) consumer, err := nsq.NewConsumer(topics[i], *channel, cfg) if err != nil {