The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4448
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === This will use the raftLogger wrapper that we already have, and forward to our logger. The output will be just a few INFO messages when connecting between nodes, joining and leaving, so pretty low noise. It helps in case of errors at that layer because error messages will be logged. Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From c1337c729314be37c9b5f4bff86e88ae199e6474 Mon Sep 17 00:00:00 2001 From: Free Ekanayaka <free.ekanay...@canonical.com> Date: Sat, 14 Apr 2018 14:29:00 +0000 Subject: [PATCH] Pass a logger to raft-http This will use the raftLogger wrapper that we already have, and forward to our logger. The output will be just a few INFO messages when connecting between nodes, joining and leaving, so pretty low noise. Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com> --- lxd/cluster/raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/cluster/raft.go b/lxd/cluster/raft.go index 97483553f..72ce4c437 100644 --- a/lxd/cluster/raft.go +++ b/lxd/cluster/raft.go @@ -308,7 +308,7 @@ func raftNetworkTransport( logger *log.Logger, timeout time.Duration, dial rafthttp.Dial) (raft.Transport, *rafthttp.Handler, *rafthttp.Layer, error) { - handler := rafthttp.NewHandler() + handler := rafthttp.NewHandlerWithLogger(logger) addr, err := net.ResolveTCPAddr("tcp", address) if err != nil { return nil, nil, nil, errors.Wrap(err, "invalid node address")
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel