mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +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)),
|
{ExitCode, Result} = wait_for_cmd(spawn_cmd(Cmd)),
|
||||||
case ExitCode of
|
case ExitCode of
|
||||||
0 ->
|
0 ->
|
||||||
DebugLogFile;
|
{ok, Port} = file:open(DebugLogFile, [read, binary]),
|
||||||
|
{DebugLogFile, Port};
|
||||||
_ ->
|
_ ->
|
||||||
exit({ExitCode, Result})
|
exit({ExitCode, Result})
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user