Skip to content

Commit

Permalink
remove unwanted logs of init.lua file from k8s discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
slayer321 committed Oct 15, 2024
1 parent d80ee00 commit a7e8880
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apisix/discovery/kubernetes/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ local core = require("apisix.core")
local util = require("apisix.cli.util")
local local_conf = require("apisix.core.config_local").local_conf()
local informer_factory = require("apisix.discovery.kubernetes.informer_factory")
local cjson = require("cjson")


local ctx
Expand Down Expand Up @@ -61,9 +60,6 @@ local function on_endpoint_slices_modified(handle, endpoint)
core.table.clear(endpoint_buffer)

local endpointslices = endpoint.endpoints
ngx.log(ngx.WARN,"-----------size of endpintslica",#endpointslices)
ngx.log(ngx.WARN, "Type of endpointslices: ", type(endpointslices))
ngx.log(ngx.WARN,"-----Data-----",cjson.encode(endpointslices))
for _, endpointslice in ipairs(endpointslices or {}) do
if endpointslice.addresses then
local addresses = endpointslice.addresses
Expand Down

0 comments on commit a7e8880

Please sign in to comment.