Skip to content

Commit

Permalink
adjust logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sabban committed Oct 16, 2024
1 parent cb039c8 commit 4e63a10
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/crowdsec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ function csmod.GetCaptchaBackendKey()
end

local function SetupStream()
-- wip: debug
ngx.log(ngx.INFO, "SetupStream" .. runtime.conf["API_URL"])
-- if it stream mode and startup start timer
if runtime.conf["API_URL"] == "" then
return
Expand Down Expand Up @@ -261,8 +259,6 @@ local function SetupStream()
end
runtime.timer_started = true
ngx.log(ngx.DEBUG, "Timer launched")
--wip debug
ngx.log(ngx.INFO, "Timer launched")
end
end

Expand Down Expand Up @@ -365,7 +361,6 @@ function csmod.allowIp(ip)
runtime.conf["SSL_VERIFY"],
runtime.conf["BOUNCING_ON_TYPE"]
)
-- debug: wip
ngx.log(ngx.DEBUG, "live_query: " .. ip .. " | " .. (ok and "not banned with" or "banned with") .. " | " .. tostring(remediation) .. " | " .. tostring(origin) .. " | " .. tostring(err))
if remediation ~= nil and remediation ~= "none" then
metrics:increment(origin,1)
Expand Down

0 comments on commit 4e63a10

Please sign in to comment.