Skip to content

Commit

Permalink
fix(runtime/ipc/routes): fix capture
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Jan 30, 2025
1 parent 39874a0 commit 967646e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/ipc/routes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 967646e

Please sign in to comment.