From 3d7f8a7430d1f82b03296ea56a4298927f15d02c Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Mon, 21 Dec 2020 13:50:59 -0800 Subject: [PATCH] Fix incorrect IsEnabled check on TplEventSource.TaskWaitContinuation* --- .../src/System/Threading/Tasks/TplEventSource.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEventSource.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEventSource.cs index ea85eab23cfeea..f1f12a5c0be25e 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEventSource.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEventSource.cs @@ -364,7 +364,7 @@ public void TaskWaitEnd( public void TaskWaitContinuationComplete(int TaskID) { // Log an event if indicated. - if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks)) + if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.TaskStops)) WriteEvent(TASKWAITCONTINUATIONCOMPLETE_ID, TaskID); } @@ -373,7 +373,7 @@ public void TaskWaitContinuationComplete(int TaskID) /// /// The task ID. [Event(TASKWAITCONTINUATIONSTARTED_ID, - Level = EventLevel.Verbose, Keywords = Keywords.TaskStops)] + Level = EventLevel.Verbose, Keywords = Keywords.Tasks)] public void TaskWaitContinuationStarted(int TaskID) { // Log an event if indicated.