Skip to content

Commit

Permalink
fix wrong error handling for log_default and increase delay for k8s/t…
Browse files Browse the repository at this point in the history
…ls test
  • Loading branch information
fl0ppy-d1sk committed Jan 10, 2024
1 parent 66b1c01 commit c8452aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/kubernetes-tls/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "kubernetes-tls",
"kinds": ["kubernetes"],
"timeout": 60,
"delay": 120,
"delay": 180,
"tls_edit": false,
"tests": [
{
Expand Down
2 changes: 2 additions & 0 deletions src/common/confs/default-server-http.conf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ server {
local ok, ret = call_plugin(plugin_obj, "log_default")
if not ok then
logger:log(ERR, ret)
elseif not ret.ret then
logger:log(ERR, plugin_id .. ":log_default() call failed : " .. ret.msg)
else
logger:log(INFO, plugin_id .. ":log_default() call successful : " .. ret.msg)
end
Expand Down

0 comments on commit c8452aa

Please sign in to comment.