From 6f47020ec1e07a995f7695c33d9c81b6b5818628 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Tue, 16 Nov 2021 22:51:06 +0100 Subject: [PATCH] Fix child process Log spam --- GlosSITarget/AppLauncher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GlosSITarget/AppLauncher.cpp b/GlosSITarget/AppLauncher.cpp index 363e22b..b86e4f4 100644 --- a/GlosSITarget/AppLauncher.cpp +++ b/GlosSITarget/AppLauncher.cpp @@ -66,7 +66,8 @@ void AppLauncher::update() if (Settings::launch.waitForChildProcs) { std::erase_if(child_pids_, [](auto pid) { const auto running = IsProcessRunning(pid); - spdlog::info("Child process with PID \"{}\" died", pid); + if (!running) + spdlog::info("Child process with PID \"{}\" died", pid); return !running; }); if (Settings::launch.closeOnExit && child_pids_.empty() && launched_pid_ == 0) {