Skip to content

Commit

Permalink
clean logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 5, 2024
1 parent 46e3bc9 commit 76564d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kong/clustering/rpc/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function _M:call(node_id, method, ...)
if res == "local" then
res, err = self:_local_call(node_id, method, params)

ngx_log(ngx_DEBUG, "[rpc] ", method, err and " failed" or " succeeded")
ngx_log(ngx_DEBUG, "[rpc] ", method, " err: ", err)

if not res then
return nil, err
Expand All @@ -199,7 +199,7 @@ function _M:call(node_id, method, ...)

local ok, err = fut:wait(5)

ngx_log(ngx_DEBUG, "[rpc] ", method, err and " failed" or " succeeded")
ngx_log(ngx_DEBUG, "[rpc] ", method, " err: ", err)

if err then
return nil, err
Expand Down
5 changes: 3 additions & 2 deletions kong/clustering/services/sync/hooks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ end
-- only control plane has these delta operations
function _M:register_dao_hooks()
local function is_db_export(name)
ngx_log(ngx_DEBUG, "[kong.sync.v2] name: ", name, " db_export: ", kong.db[name].schema.db_export)

local db_export = kong.db[name].schema.db_export

ngx_log(ngx_DEBUG, "[kong.sync.v2] name: ", name, " db_export: ", db_export)

return db_export == nil or db_export == true
end

Expand Down

0 comments on commit 76564d6

Please sign in to comment.