diff --git a/src/kinesis_resty.lua b/src/kinesis_resty.lua index bd7c40c..c91c7e9 100644 --- a/src/kinesis_resty.lua +++ b/src/kinesis_resty.lua @@ -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[[ diff --git a/src/lua_resty_netacea.lua b/src/lua_resty_netacea.lua index f4fa344..2d7684d 100644 --- a/src/lua_resty_netacea.lua +++ b/src/lua_resty_netacea.lua @@ -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' diff --git a/src/lua_resty_netacea_protector_client.lua b/src/lua_resty_netacea_protector_client.lua index 27f5595..d11a993 100644 --- a/src/lua_resty_netacea_protector_client.lua +++ b/src/lua_resty_netacea_protector_client.lua @@ -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( @@ -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)