perlin-network / noise

A decentralized P2P networking stack written in Go.
https://godoc.org/github.com/perlin-network/noise
MIT License
1.78k stars 213 forks source link

nodes with logging enabled always echo private key to logs #286

Open haukened opened 4 years ago

haukened commented 4 years ago

If you pass a zap.logger to a node, it will always echo the private key into the logs, even in zap.NewProduction() it would be good to have the ability to suppress private key output to logging, since the logger can't be set after the node is running to delay the logging.