From 396a6cf242f6428f7d776af572f409078533c6e1 Mon Sep 17 00:00:00 2001 From: Fred Dushin Date: Mon, 12 Sep 2016 13:50:20 -0400 Subject: [PATCH] Modified rtdev:get_node_debug_logs to return filename and file handle so that the debuglog archive can be uploaded. --- src/rtdev.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rtdev.erl b/src/rtdev.erl index cf572308..3d36736d 100644 --- a/src/rtdev.erl +++ b/src/rtdev.erl @@ -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.