Thu, 31 Dec 2015 13:25:43 +0000
main: Separate logging for the last event to ensure proper JSON syntax
main.lua | file | annotate | diff | comparison | revisions |
--- a/main.lua Thu Dec 31 13:25:22 2015 +0000 +++ b/main.lua Thu Dec 31 13:25:43 2015 +0000 @@ -183,10 +183,9 @@ print("TEST PASSED"); log_data("test-passed"); end -log_data("end"); if result_log then - result_log:write("]\n"); + result_log:write([[ {"type": "end", "time": ]]..time().."}\n]\n"); result_log:close(); end