mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Modified rtdev:get_node_debug_logs to return filename and file handle
so that the debuglog archive can be uploaded.
This commit is contained in:
parent
f37f69007b
commit
396a6cf242
@ -801,7 +801,8 @@ get_node_debug_logs({_Node, NodeNum}) ->
|
||||
{ExitCode, Result} = wait_for_cmd(spawn_cmd(Cmd)),
|
||||
case ExitCode of
|
||||
0 ->
|
||||
DebugLogFile;
|
||||
{ok, Port} = file:open(DebugLogFile, [read, binary]),
|
||||
{DebugLogFile, Port};
|
||||
_ ->
|
||||
exit({ExitCode, Result})
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user