summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/TestLuaRocks/TestLuaRocks.lua
diff options
context:
space:
mode:
authorWilliam 'psyFi' Hatcher <william@hatcher.work>2017-08-13 13:29:24 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2017-08-13 13:29:24 +0200
commitee14344c05cd7e0672adcd734b505fc41baee25b (patch)
treee7324fe5d017f212a57eb4cedb64bdaaca32d8a3 /Server/Plugins/TestLuaRocks/TestLuaRocks.lua
parentUpdate copyright dates and contributors message (#3907) (diff)
downloadcuberite-ee14344c05cd7e0672adcd734b505fc41baee25b.tar
cuberite-ee14344c05cd7e0672adcd734b505fc41baee25b.tar.gz
cuberite-ee14344c05cd7e0672adcd734b505fc41baee25b.tar.bz2
cuberite-ee14344c05cd7e0672adcd734b505fc41baee25b.tar.lz
cuberite-ee14344c05cd7e0672adcd734b505fc41baee25b.tar.xz
cuberite-ee14344c05cd7e0672adcd734b505fc41baee25b.tar.zst
cuberite-ee14344c05cd7e0672adcd734b505fc41baee25b.zip
Diffstat (limited to 'Server/Plugins/TestLuaRocks/TestLuaRocks.lua')
-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