From 310525a3a79cef73e3a5f6841fbd08fb9dbc71e8 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 25 May 2016 11:28:57 -0700 Subject: [PATCH] Write compressed and encoded raft logs to stdout if not zip_writer Change-Id: Ib9948bebf9d5e2ef823e08b48fb67c36e0079a45 --- cmds/dumpstate/dumpstate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 90f81ff4f6..af04330c36 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -232,7 +232,8 @@ static void dump_raft() { return; } if (!zip_writer) { - MYLOGD("Not dumping raft because zip_writer is not set\n"); + // Write compressed and encoded raft logs to stdout if not zip_writer. + run_command("RAFT LOGS", 600, "logcompressor", "-r", RAFT_DIR, NULL); return; } -- 2.11.0