Omit debug output.
This commit is contained in:
parent
1f4fb5915c
commit
1579e9a025
3
init.lua
3
init.lua
@ -92,7 +92,6 @@ local function send_request(request_type, player, context)
|
|||||||
end
|
end
|
||||||
do_wait(player, context)
|
do_wait(player, context)
|
||||||
-- perform the request
|
-- perform the request
|
||||||
print("POST:", request_type, reg_id, dump(context))
|
|
||||||
http.fetch({
|
http.fetch({
|
||||||
url = reg_api,
|
url = reg_api,
|
||||||
post_data = minetest.write_json({
|
post_data = minetest.write_json({
|
||||||
@ -106,7 +105,6 @@ local function send_request(request_type, player, context)
|
|||||||
timeout = 15,
|
timeout = 15,
|
||||||
}, function(res)
|
}, function(res)
|
||||||
assert(res.completed)
|
assert(res.completed)
|
||||||
print(request_type, dump(res))
|
|
||||||
if not res.succeeded then
|
if not res.succeeded then
|
||||||
-- major problem, retry
|
-- major problem, retry
|
||||||
minetest.log("error", "mt2fa: server replied with an error code")
|
minetest.log("error", "mt2fa: server replied with an error code")
|
||||||
@ -415,7 +413,6 @@ local function do_updates(first)
|
|||||||
timeout = 15,
|
timeout = 15,
|
||||||
}, function(res)
|
}, function(res)
|
||||||
assert(res.completed)
|
assert(res.completed)
|
||||||
print(dump(res))
|
|
||||||
if not res.succeeded then
|
if not res.succeeded then
|
||||||
-- major problem, retry
|
-- major problem, retry
|
||||||
minetest.log("error", "mt2fa: server replied with an error code")
|
minetest.log("error", "mt2fa: server replied with an error code")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user