diff --git a/CMakeLists.txt b/CMakeLists.txt index 87fe55660..ae7e094fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ project(lokinet if(APPLE) # Apple build number: must be incremented to submit a new build for the same lokinet version, # should be reset to 0 when the lokinet version increments. - set(LOKINET_APPLE_BUILD 4) + set(LOKINET_APPLE_BUILD 5) endif() set(RELEASE_MOTTO "Our Lord And Savior" CACHE STRING "Release motto") diff --git a/llarp/apple/context_wrapper.cpp b/llarp/apple/context_wrapper.cpp index 025c0cfb2..e30c6c5d6 100644 --- a/llarp/apple/context_wrapper.cpp +++ b/llarp/apple/context_wrapper.cpp @@ -38,6 +38,8 @@ llarp_apple_init(llarp_apple_config* appleconf) [](const char* msg, void* nslog) { reinterpret_cast(nslog)(msg); }, nullptr, reinterpret_cast(appleconf->ns_logger))); + llarp::logRingBuffer = std::make_shared(100); + llarp::log::add_sink(llarp::logRingBuffer, llarp::log::DEFAULT_PATTERN_MONO); try {