From 3b4aa1cd8ac7cbe9f7d771cb76a0430c1002b5f9 Mon Sep 17 00:00:00 2001 From: Granyaa Date: Tue, 23 Dec 2025 10:51:34 +0200 Subject: [PATCH] Redirect kong nano attachment output from stdout to stderr --- .../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 a0d36f7..eb49244 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");