Skip to content

Commit d7bd9a2

Browse files
committed
use configured logger, closes #241, thanks @arcivanov
1 parent 39287af commit d7bd9a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/openidc.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ local WARN = ngx.WARN
6969
local function token_auth_method_precondition(method, required_field)
7070
return function(opts)
7171
if not opts[required_field] then
72-
ngx.log(ngx.DEBUG, "Can't use " .. method .. " without opts." .. required_field)
72+
log(DEBUG, "Can't use " .. method .. " without opts." .. required_field)
7373
return false
7474
end
7575
return true

0 commit comments

Comments
 (0)