summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/weblit/logger.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/weblit/logger.lua')
-rw-r--r--plugins/weblit/logger.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/weblit/logger.lua b/plugins/weblit/logger.lua
deleted file mode 100644
index 912b4eed768..00000000000
--- a/plugins/weblit/logger.lua
+++ /dev/null
@@ -1,10 +0,0 @@
-
-return function (req, res, go)
- -- Skip this layer for clients who don't send User-Agent headers.
- local userAgent = req.headers["user-agent"]
- if not userAgent then return go() end
- -- Run all inner layers first.
- go()
- -- And then log after everything is done
- --print(string.format("%s %s %s %s", req.method, req.path, userAgent, res.code))
-end