From 490c4c0120dec865c5f1c7c01408bb23ea6f5ffc Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 14 Dec 2012 13:14:55 +0100 Subject: [PATCH] Remove store-run-log server This was presumably used to log e2 command usage internally to ease debugging in the early stage of e2factory. It's not needed anymore. Signed-off-by: Tobias Ulmer --- server/web/store-run-log.lua.in | 48 --------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 server/web/store-run-log.lua.in diff --git a/server/web/store-run-log.lua.in b/server/web/store-run-log.lua.in deleted file mode 100644 index 33a4b4d..0000000 --- a/server/web/store-run-log.lua.in +++ /dev/null @@ -1,48 +0,0 @@ --- store-run-log.lua - store run.log from client -*- Lua -*- --- --- method: POST --- --- body: log-file section --- --- query string: --- --- host= --- user= --- project= - - -print("Content-type: text/plain\n") - -local cl = os.getenv("CONTENT_LENGTH") - -assert(cl) - -local log = io.read(tonumber(cl)) -local query = {} - -for k, v in string.gmatch(os.getenv("QUERY_STRING"), "(%w+)=([-%w_]+)") do - query[ k ] = v -end - -assert(query.host) -assert(query.user) -assert(query.project) - -local logdir = "@LOGDIR@/" .. query.project .. "/" .. query.host -local logfile = logdir .. "/" .. query.user .. ".log" - -os.execute("mkdir -p '" .. logdir .. "'") - -local function writelog(logfile) - local f, msg = io.open(logfile, "a") - if not f then - error("can not open log file `" .. logfile .. "': " .. msg) - end - f:write(log or "") - f:close() -end - -writelog(logfile) -writelog("@LOGDIR@/all.log") - -print("ok") -- 2.39.5