diff --git a/deps/node/src/lwnode/aul-event-receiver.cc b/deps/node/src/lwnode/aul-event-receiver.cc index 97f8e031b4..5a409a4afa 100644 --- a/deps/node/src/lwnode/aul-event-receiver.cc +++ b/deps/node/src/lwnode/aul-event-receiver.cc @@ -131,9 +131,12 @@ void AULEventReceiver::initLoggerOutput(bool isEventReceiverRunning, LogKind::user()->tag = tag; } - LogOption::setDefaultOutputInstantiator([&isEventReceiverRunning]() { + LogOption::setDefaultOutputInstantiator([isEventReceiverRunning]() { static thread_local std::shared_ptr s_loggerOutput; if (s_loggerOutput == nullptr) { + fprintf(stdout, + "logger type: %s", + isEventReceiverRunning ? "dlog" : "stdout"); s_loggerOutput = isEventReceiverRunning ? std::static_pointer_cast( std::make_shared())