]> git.e2factory.org Git - e2factory.git/commitdiff
Remove store-run-log server
authorTobias Ulmer <tu@emlix.com>
Fri, 14 Dec 2012 12:14:55 +0000 (13:14 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:13 +0000 (19:07 +0100)
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 <tu@emlix.com>
server/web/store-run-log.lua.in [deleted file]

diff --git a/server/web/store-run-log.lua.in b/server/web/store-run-log.lua.in
deleted file mode 100644 (file)
index 33a4b4d..0000000
+++ /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=<hostname>
---   user=<username>
---   project=<projectname>
-
-
-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")