From e9f7ab116050c18d52bbaf00de732417828da09b Mon Sep 17 00:00:00 2001 From: wklken Date: Thu, 21 Dec 2023 11:47:16 +0800 Subject: [PATCH] refactor(bk-delete-sensitive): remove useless core.log.warn (#72) (#73) --- src/apisix/plugins/bk-delete-sensitive.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/apisix/plugins/bk-delete-sensitive.lua b/src/apisix/plugins/bk-delete-sensitive.lua index 8084bf1..fa1a9c4 100644 --- a/src/apisix/plugins/bk-delete-sensitive.lua +++ b/src/apisix/plugins/bk-delete-sensitive.lua @@ -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" @@ -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