Changed stdout to stderr as log output for kong

This commit is contained in:
Granyaa
2026-01-15 12:36:37 +02:00
parent ced0602069
commit a09051457a

View File

@@ -12,7 +12,7 @@ static int lua_init_nano_attachment(lua_State *L) {
int worker_id = luaL_checkinteger(L, 1); int worker_id = luaL_checkinteger(L, 1);
int num_workers = luaL_checkinteger(L, 2); 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) { if (!attachment) {
lua_pushnil(L); lua_pushnil(L);
lua_pushstring(L, "Failed to initialize NanoAttachment"); lua_pushstring(L, "Failed to initialize NanoAttachment");