Skip to content

Commit

Permalink
filter on level
Browse files Browse the repository at this point in the history
  • Loading branch information
christothes committed Mar 26, 2021
1 parent bd0a6f0 commit 6f9efbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/identity/Azure.Identity/src/AzureIdentityEventSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f9efbc

Please sign in to comment.