Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: support output logs to multiple files #9579

Merged
merged 12 commits into from
Apr 17, 2018
Prev Previous commit
Next Next commit
snapshot: set string for LogOutput
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
gyuho committed Apr 17, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3e99487372a09b1469d40a3c37f20af5e3e8cdb1
2 changes: 1 addition & 1 deletion snapshot/member_test.go
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ func TestSnapshotV3RestoreMultiMemberAdd(t *testing.T) {

cfg := embed.NewConfig()
cfg.Logger = "zap"
cfg.LogOutput = "/dev/null"
cfg.LogOutput = []string{"/dev/null"}
cfg.Debug = false
cfg.Name = "3"
cfg.InitialClusterToken = testClusterTkn
6 changes: 3 additions & 3 deletions snapshot/v3_snapshot_test.go
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ func TestSnapshotV3RestoreSingle(t *testing.T) {

cfg := embed.NewConfig()
cfg.Logger = "zap"
cfg.LogOutput = "/dev/null"
cfg.LogOutput = []string{"/dev/null"}
cfg.Debug = false
cfg.Name = "s1"
cfg.InitialClusterToken = testClusterTkn
@@ -153,7 +153,7 @@ func createSnapshotFile(t *testing.T, kvs []kv) string {

cfg := embed.NewConfig()
cfg.Logger = "zap"
cfg.LogOutput = "/dev/null"
cfg.LogOutput = []string{"/dev/null"}
cfg.Debug = false
cfg.Name = "default"
cfg.ClusterState = "new"
@@ -220,7 +220,7 @@ func restoreCluster(t *testing.T, clusterN int, dbPath string) (
for i := 0; i < clusterN; i++ {
cfg := embed.NewConfig()
cfg.Logger = "zap"
cfg.LogOutput = "/dev/null"
cfg.LogOutput = []string{"/dev/null"}
cfg.Debug = false
cfg.Name = fmt.Sprintf("%d", i)
cfg.InitialClusterToken = testClusterTkn