diff options
author | Valery Piashchynski <[email protected]> | 2020-11-26 16:21:50 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-26 16:21:50 +0300 |
commit | 46ae5dcc22d971b0f909bce23ec8fdef26811ed6 (patch) | |
tree | 950563429e409cd3f59a62d4d82df37ffe4cf8af | |
parent | ee68279e68ab854ae313fc84ea6a2a905133da87 (diff) |
Swithc Into to Debug logger in resetter and informer RPCv2.0.0-alpha21
-rw-r--r-- | plugins/informer/rpc.go | 8 | ||||
-rw-r--r-- | plugins/resetter/rpc.go | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/informer/rpc.go b/plugins/informer/rpc.go index de47a739..d6b7bf01 100644 --- a/plugins/informer/rpc.go +++ b/plugins/informer/rpc.go @@ -18,7 +18,7 @@ type WorkerList struct { // List all resettable services. func (rpc *rpc) List(_ bool, list *[]string) error { - rpc.log.Info("Started List method") + rpc.log.Debug("Started List method") *list = make([]string, 0, len(rpc.srv.registry)) for name := range rpc.srv.registry { @@ -26,13 +26,13 @@ func (rpc *rpc) List(_ bool, list *[]string) error { } rpc.log.Debug("list of services", "list", *list) - rpc.log.Info("successfully finished List method") + rpc.log.Debug("successfully finished List method") return nil } // Workers state of a given service. func (rpc *rpc) Workers(service string, list *WorkerList) error { - rpc.log.Info("started Workers method", "service", service) + rpc.log.Debug("started Workers method", "service", service) workers, err := rpc.srv.Workers(service) if err != nil { return err @@ -48,6 +48,6 @@ func (rpc *rpc) Workers(service string, list *WorkerList) error { list.Workers = append(list.Workers, ps) } rpc.log.Debug("list of workers", "workers", list.Workers) - rpc.log.Info("successfully finished Workers method") + rpc.log.Debug("successfully finished Workers method") return nil } diff --git a/plugins/resetter/rpc.go b/plugins/resetter/rpc.go index 157aa8c6..ecc51bb3 100644 --- a/plugins/resetter/rpc.go +++ b/plugins/resetter/rpc.go @@ -9,7 +9,7 @@ type rpc struct { // List all resettable services. func (rpc *rpc) List(_ bool, list *[]string) error { - rpc.log.Info("started List method") + rpc.log.Debug("started List method") *list = make([]string, 0) for name := range rpc.srv.registry { @@ -17,14 +17,14 @@ func (rpc *rpc) List(_ bool, list *[]string) error { } rpc.log.Debug("services list", "services", *list) - rpc.log.Info("finished List method") + rpc.log.Debug("finished List method") return nil } // Reset named service. func (rpc *rpc) Reset(service string, done *bool) error { - rpc.log.Info("started Reset method for the service", "service", service) - defer rpc.log.Info("finished Reset method for the service", "service", service) + rpc.log.Debug("started Reset method for the service", "service", service) + defer rpc.log.Debug("finished Reset method for the service", "service", service) *done = true return rpc.srv.Reset(service) } |