Fix incorrect IsEnabled check on TplEventSource.TaskWaitContinuation* (#46304)
authorSung Yoon Whang <suwhang@microsoft.com>
Tue, 5 Jan 2021 18:14:48 +0000 (10:14 -0800)
committerGitHub <noreply@github.com>
Tue, 5 Jan 2021 18:14:48 +0000 (10:14 -0800)
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEventSource.cs

index ea85eab..f1f12a5 100644 (file)
@@ -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
         /// </summary>
         /// <param name="TaskID">The task ID.</param>
         [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.