From: Tobias Ulmer Date: Fri, 14 Dec 2012 12:14:55 +0000 (+0100) Subject: Remove store-run-log server X-Git-Tag: e2factory-2.3.13rc1~64 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=490c4c0120dec865c5f1c7c01408bb23ea6f5ffc;p=e2factory.git 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 --- 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")