From 967646eab3fdf26c5738b6d9a1d5c269dedc5387 Mon Sep 17 00:00:00 2001 From: jwerle Date: Wed, 29 Jan 2025 23:18:31 -0500 Subject: [PATCH] fix(runtime/ipc/routes): fix capture --- src/runtime/ipc/routes.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/ipc/routes.cc b/src/runtime/ipc/routes.cc index f7239d41b9..2d48636c07 100644 --- a/src/runtime/ipc/routes.cc +++ b/src/runtime/ipc/routes.cc @@ -2255,7 +2255,7 @@ static void mapIPCRoutes (Router *router) { * Log `value to stdout` with platform dependent logger. * @param value */ - router->map("log", [](auto message, auto router, auto reply) { + router->map("log", [=](auto message, auto router, auto reply) { auto value = message.value.c_str(); #if SOCKET_RUNTIME_PLATFORM_APPLE NSLog(@"%s", value); @@ -2881,7 +2881,7 @@ static void mapIPCRoutes (Router *router) { * Prints incoming message value to stdout. * @param value */ - router->map("stdout", [](auto message, auto router, auto reply) { + router->map("stdout", [=](auto message, auto router, auto reply) { if (message.value.size() > 0) { #if SOCKET_RUNTIME_PLATFORM_APPLE const auto seq = ++router->bridge.getRuntime()->counters.logSeq; @@ -2910,7 +2910,7 @@ static void mapIPCRoutes (Router *router) { * Prints incoming message value to stderr. * @param value */ - router->map("stderr", [](auto message, auto router, auto reply) { + router->map("stderr", [=](auto message, auto router, auto reply) { if (message.get("debug") == "true") { if (message.value.size() > 0) { debug("%s", message.value.c_str());