Skip to content

Commit

Permalink
[TMA-630][haoliu & llr] Log for response_body 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexuscream committed Feb 26, 2019
1 parent 80b472f commit 7caac2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kong/plugins/okta-auth/okta_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ local function fetch_objc_label(oidc_id)
return nil
end

ngx.log(ngx.DEBUG, "Get Response Success response_body: ", response_body)
if type(response_body) == "table" then
for key, value in pairs(response_body) do
print(key, value)
ngx.log(ngx.DEBUG, key, value)
end
else
ngx.log(ngx.DEBUG, "Get Response Success response_body: ", response_body)
end

local oidc = response_body[1] or response_body
Expand Down

0 comments on commit 7caac2f

Please sign in to comment.