summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/TestLuaRocks
diff options
context:
space:
mode:
Diffstat (limited to 'Server/Plugins/TestLuaRocks')
-rw-r--r--Server/Plugins/TestLuaRocks/TestLuaRocks.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/Server/Plugins/TestLuaRocks/TestLuaRocks.lua b/Server/Plugins/TestLuaRocks/TestLuaRocks.lua
index a4c2be6f8..44a545032 100644
--- a/Server/Plugins/TestLuaRocks/TestLuaRocks.lua
+++ b/Server/Plugins/TestLuaRocks/TestLuaRocks.lua
@@ -20,14 +20,14 @@ local http = require("socket.http");
-LOGINFO("Trying to download a webpage...");
-local body, code, headers = http.request('https://forum.cuberite.org/');
-LOG("code: " .. tostring(code));
-LOG("headers: ");
+LOGINFO("Trying to download a webpage...")
+local body, code, headers = http.request('https://forum.cuberite.org/')
+LOG("code: " .. tostring(code))
+LOG("headers: ")
for k, v in pairs(headers or {}) do
- LOG(" " .. k .. ": " .. v);
+ LOG(" " .. k .. ": " .. v)
end
-LOG("body length: " .. string.len(body));
+LOG("body length: " .. string.len(body))
@@ -35,15 +35,15 @@ LOG("body length: " .. string.len(body));
function Initialize(a_Plugin)
if (socket == nil) then
- LOG("LuaSocket not found");
+ LOGWARNING("LuaSocket not found")
else
- LOG("LuaSocket loaded");
+ LOG("LuaSocket loaded")
end
if (log30 == nil) then
- LOG("30log not found");
+ LOGWARNING("30log not found")
else
- LOG("30log loaded");
+ LOG("30log loaded")
end
- LOGINFO("Preventing plugin load so that it may be requested again from the webadmin.");
- return false;
+ LOGINFO("Reload plugin from console or webadmin to rerun tests.")
+ return false
end