log with cjson encode

This commit is contained in:
moicen
2022-06-26 17:23:20 +08:00
parent fcd5573219
commit 8ddd8e67d2
+1 -5
View File
@@ -35,11 +35,7 @@ local function get_access_token()
}
)
ngx.log(ngx.INFO, "RESP HEADERS -> ", resp.headers)
ngx.log(ngx.INFO, "RESP BODY -> ", resp.body)
ngx.log(ngx.INFO, "RESP STATUS -> ", resp.status)
ngx.log(ngx.INFO, "RESP STRING -> ", resp.string)
ngx.log(ngx.INFO, "RESP -> ", cjson.encode(resp))
ngx.log(ngx.ERR, "ERR -> ", err)
if resp == nil then