Skip to content

Commit

Permalink
refactor(bk-delete-sensitive): remove useless core.log.warn (#72) (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Dec 21, 2023
1 parent d11ab66 commit e9f7ab1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/apisix/plugins/bk-delete-sensitive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ local core = require("apisix.core")
local bk_core = require("apisix.plugins.bk-core.init")
local ngx = ngx -- luacheck: ignore
local ipairs = ipairs
local tostring = tostring

local plugin_name = "bk-delete-sensitive"

Expand Down Expand Up @@ -104,10 +103,6 @@ local function delete_sensitive_params(ctx, sensitive_keys, unfiltered_sensitive
end

if ctx.var.auth_params_location == "header" and (query_changed or form_changed or body_changed) then
core.log.warn(
"auth params are present in both header and request parameters, request_id: " ..
tostring(ctx.var.bk_request_id)
)
-- 记录认证参数位置,便于统计哪些请求将认证参数放到请求参数,推动优化
ctx.var.auth_params_location = "header_and_params"
end
Expand Down

0 comments on commit e9f7ab1

Please sign in to comment.