From a09051457a972289ba92954403c186567ad116d0 Mon Sep 17 00:00:00 2001 From: Granyaa Date: Thu, 15 Jan 2026 12:36:37 +0200 Subject: [PATCH] Changed stdout to stderr as log output for kong --- .../open-appsec-waf-kong-plugin/lua_attachment_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c b/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c index bdbe530..9f3f5b0 100755 --- a/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c +++ b/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c @@ -12,7 +12,7 @@ static int lua_init_nano_attachment(lua_State *L) { int worker_id = luaL_checkinteger(L, 1); int num_workers = luaL_checkinteger(L, 2); - NanoAttachment* attachment = InitNanoAttachment(0, worker_id, num_workers, fileno(stdout)); + NanoAttachment* attachment = InitNanoAttachment(0, worker_id, num_workers, fileno(stderr)); if (!attachment) { lua_pushnil(L); lua_pushstring(L, "Failed to initialize NanoAttachment");