diff --git a/sdk/identity/Azure.Identity/src/AzureIdentityEventSource.cs b/sdk/identity/Azure.Identity/src/AzureIdentityEventSource.cs index 46a33b02043b3..d7cd520bb219f 100644 --- a/sdk/identity/Azure.Identity/src/AzureIdentityEventSource.cs +++ b/sdk/identity/Azure.Identity/src/AzureIdentityEventSource.cs @@ -162,16 +162,16 @@ public void LogMsal(Microsoft.Identity.Client.LogLevel level, string message, bo { switch (level) { - case Microsoft.Identity.Client.LogLevel.Error: + case Microsoft.Identity.Client.LogLevel.Error when IsEnabled(EventLevel.Error, EventKeywords.All): LogMsalError(message); break; - case Microsoft.Identity.Client.LogLevel.Warning: + case Microsoft.Identity.Client.LogLevel.Warning when IsEnabled(EventLevel.Warning, EventKeywords.All): LogMsalWarning(message); break; - case Microsoft.Identity.Client.LogLevel.Info: + case Microsoft.Identity.Client.LogLevel.Info when IsEnabled(EventLevel.Informational, EventKeywords.All): LogMsalInformational(message); break; - case Microsoft.Identity.Client.LogLevel.Verbose: + case Microsoft.Identity.Client.LogLevel.Verbose when IsEnabled(EventLevel.Verbose, EventKeywords.All): LogMsalVerbose(message); break; default: