From cb8a5eda762888b6b2875c375aba7a2328ff5fd1 Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Tue, 5 Jan 2021 10:14:48 -0800 Subject: [PATCH] Fix incorrect IsEnabled check on TplEventSource.TaskWaitContinuation* (#46304) --- .../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 ea85eab..f1f12a5 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 @@ namespace System.Threading.Tasks 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 @@ namespace System.Threading.Tasks /// /// 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. -- 2.7.4