李伟乐 2 years ago
parent 9291e6faf9
commit ff30f8dfc4
  1. 2
      log/mq/nsq.go

@ -53,7 +53,7 @@ func (s *nsqLogger) Name() string {
return "app_log" return "app_log"
} }
func NewNsqLogger(host string, topic string) log.Logger { func NewNsqLogger(host string, topic string) *nsqLogger {
client, err := nsq.NewProducer(host, nsq.NewConfig()) client, err := nsq.NewProducer(host, nsq.NewConfig())
if err != nil { if err != nil {
panic(err) panic(err)

Loading…
Cancel
Save