Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/kinesis_resty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local ngx = require 'ngx'
local Kinesis = {}
Kinesis.__index = Kinesis

ngx.log(ngx.ERR, "*** kinesis_resty module loaded ***")
ngx.log(ngx.DEBUG, "*** kinesis_resty module loaded ***")

-- FFI-based HMAC-SHA256
ffi.cdef[[
Expand Down
2 changes: 1 addition & 1 deletion src/lua_resty_netacea.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local Constants = require("lua_resty_netacea_constants")
local mitigation = require("lua_resty_netacea_mitigation")

local _N = {}
_N._VERSION = '1.2.0'
_N._VERSION = '1.2.1'
_N._TYPE = 'nginx'

local ngx = require 'ngx'
Expand Down
4 changes: 2 additions & 2 deletions src/lua_resty_netacea_protector_client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ end
function ProtectorClient:checkReputation()
local headers = self:getMitigationRequestHeaders()
local hc = createHttpConnection()
ngx.log(ngx.ERR, 'Netacea mitigation headers: ' .. require('cjson').encode(headers))
ngx.log(ngx.DEBUG, 'Netacea mitigation headers: ' .. require('cjson').encode(headers))
self.endpointIndex = (self.endpointIndex + 1) % table.getn(self.mitigationEndpoint)

local res, err = hc:request_uri(
Expand Down Expand Up @@ -98,7 +98,7 @@ function ProtectorClient:validateCaptcha(captcha_data)
local mitigationType = res.headers['x-netacea-mitigate'] or constants['mitigationTypes'].NONE
local captchaState = res.headers['x-netacea-captcha'] or constants['captchaStates'].NONE

ngx.log(ngx.ERR,
ngx.log(ngx.DEBUG,
'Netacea captcha validation response: match=' .. idType
.. ', mitigate=' .. mitigationType .. ', captcha=' .. captchaState)

Expand Down