mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 05:57:35 +00:00
add debug log
This commit is contained in:
parent
bd40bce5d3
commit
83d585c56d
|
@ -32,6 +32,8 @@ local function sendHTTP(params)
|
||||||
body = params.body && params.body or "",
|
body = params.body && params.body or "",
|
||||||
type = "application/json",
|
type = "application/json",
|
||||||
success = function(code, body, headers)
|
success = function(code, body, headers)
|
||||||
|
gmInte.log("HTTP Response: " .. code, true)
|
||||||
|
gmInte.log("HTTP Body: " .. body, true)
|
||||||
if (gmInte.isCodeValid(code)) then
|
if (gmInte.isCodeValid(code)) then
|
||||||
if (params.success) then
|
if (params.success) then
|
||||||
params.success(code, body, headers)
|
params.success(code, body, headers)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user