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:
parent
878a11f896
commit
d074fd9d0c
3 changed files with 17 additions and 23 deletions
4
zk.go
4
zk.go
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue