From ba6c058148bd5901dfecf4925d0384c1c59d2283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 10 Dec 2020 09:22:38 +0100 Subject: [PATCH] Add some more VibeTaskLog logging. --- source/vibe/core/core.d | 2 ++ source/vibe/core/task.d | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 37a38fb..9aeefb7 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1369,6 +1369,8 @@ private void setupGcTimer() package(vibe) void performIdleProcessing(bool force_process_events = false) @safe nothrow { + debug (VibeTaskLog) logTrace("Performing idle processing..."); + bool again = !getExitFlag(); while (again) { again = performIdleProcessingOnce(force_process_events); diff --git a/source/vibe/core/task.d b/source/vibe/core/task.d index 28854d0..745ad24 100644 --- a/source/vibe/core/task.d +++ b/source/vibe/core/task.d @@ -829,7 +829,7 @@ package struct TaskScheduler { debug (VibeTaskLog) logTrace("Processing pending events..."); ExitReason er = eventDriver.core.processEvents(0.seconds); - debug (VibeTaskLog) logTrace("Done."); + debug (VibeTaskLog) logTrace("Done: %s", er); final switch (er) { case ExitReason.exited: return ExitReason.exited; @@ -878,7 +878,7 @@ package struct TaskScheduler { // process one chunk debug (VibeTaskLog) logTrace("Wait for new events to process..."); er = eventDriver.core.processEvents(Duration.max); - debug (VibeTaskLog) logTrace("Done."); + debug (VibeTaskLog) logTrace("Done: %s", er); final switch (er) { case ExitReason.exited: return ExitReason.exited; case ExitReason.outOfWaiters: