nsqio / go-nsq

The official Go package for NSQ
MIT License
2.59k stars 444 forks source link

logging: fix 'backing off for x' message formatting #202

Closed jehiah closed 7 years ago

jehiah commented 7 years ago

I noticed the following in my logs recently

2016/12/22 15:05:27 consumer.go:844: WRN    1 [chaunceys_log/notificationsd] backing off for %!f(int=0001) seconds

This fixes related messages to always use %s for time.Duration types for backoff log messages.

RFR @mreiferson