panic output detail info
This commit is contained in:
@@ -25,7 +25,7 @@ func NewKafkaProducer(addr []string, topic string) *Producer {
|
||||
|
||||
producer, err := sarama.NewSyncProducer(p.addr, p.config) //Initialize the client
|
||||
if err != nil {
|
||||
panic(err)
|
||||
panic(err.Error())
|
||||
return nil
|
||||
}
|
||||
p.producer = producer
|
||||
|
||||
Reference in New Issue
Block a user