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:
Fred Dushin 2016-09-12 13:50:20 -04:00
parent f37f69007b
commit 396a6cf242

View File

@ -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.