Giving control to the user of the library as to how they want to use a logger. Logger for gorealis only needs Print, Printf, and Println receiver functions. Example in the client uses the std library log.

This commit is contained in:
Renan DelValle 2017-11-29 12:27:07 -08:00
parent 878a11f896
commit d074fd9d0c
3 changed files with 17 additions and 23 deletions

4
zk.go
View file

@ -36,10 +36,6 @@ type ServiceInstance struct {
Status string `json:"status"`
}
type NoopLogger struct{}
func (NoopLogger) Printf(format string, a ...interface{}) {
}
// Retrieves current Aurora leader from ZK.
func LeaderFromZK(cluster Cluster) (string, error) {