This commit is contained in:
Luckysideburn
2022-10-23 14:50:43 +00:00
parent 6eff7c0ac2
commit 13c28bc2d7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ function getCurrentChaosContainer() {
function enableLogTail() {
var oReq = new XMLHttpRequest();
oReq.open("POST", "https://" + clu_endpoint + "/kube/chaos/containers?action=enable_logs_tail", true);
oReq.open("POST", "https://" + clu_endpoint + "/kube/chaos/containers?action=enable_log_tail", true);
oReq.onreadystatechange = function () {
if (this.readyState === XMLHttpRequest.DONE && this.status === 200) {
+2 -2
View File
@@ -40,12 +40,12 @@ elseif ngx.var.request_method == "POST" and action == "set_log_regex" then
ngx.say("New container definition has been saved in Redis")
return ngx.exit(ngx.status)
elseif ngx.var.request_method == "POST" and action == "enable_logs_tail" then
elseif ngx.var.request_method == "POST" and action == "enable_log_tail" then
local body_data = ngx.req.get_body_data()
red:set("logs_enabled", "1")
return ngx.exit(ngx.status)
elseif ngx.var.request_method == "POST" and action == "disable_logs_tail" then
elseif ngx.var.request_method == "POST" and action == "disable_log_tail" then
red:set("logs_enabled", "0")
return ngx.exit(ngx.status)
end