main: Include script filename in "script" log event

Mon, 10 Sep 2018 13:47:34 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 10 Sep 2018 13:47:34 +0100
changeset 113
f5c1ccc58b48
parent 112
bbb49227c174
child 114
48aab6c9e9d3

main: Include script filename in "script" log event

main.lua file | annotate | diff | comparison | revisions
--- a/main.lua	Mon Sep 10 13:46:33 2018 +0100
+++ b/main.lua	Mon Sep 10 13:47:34 2018 +0100
@@ -137,7 +137,7 @@
 
 	local script = initialize_script(parse_script(read_script(script_name)));
 
-	log_data("script", { title = script.title, summary = script.summary, tags = script.tags });
+	log_data("script", { title = script.title, summary = script.summary, tags = script.tags, filename = script_name });
 
 	if server_log_reader then
 		if skip_server_startup_log then

mercurial