Skip to content

Commit

Permalink
Revert "feat(e2e) - Adding azure core and identity event sources. (#1826
Browse files Browse the repository at this point in the history
)"

This reverts commit a061750.
  • Loading branch information
vinagesh committed Mar 22, 2021
1 parent e1bc4e1 commit 82e181c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/test/Helpers/ConsoleEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public sealed class ConsoleEventListener : EventListener
// OnEventSourceCreated is triggered as soon as the EventListener is registered and an event source is created.
// So trying to configure this value in the ConsoleEventListener constructor does not work.
// The OnEventSourceCreated can be triggered sooner than the filter is initialized in the ConsoleEventListener constructor.
private static readonly string[] s_eventFilters = new string[] { "DotNetty-Default", "Microsoft-Azure-Devices", "Azure-Core", "Azure-Identity" };
private static string[] _eventFilters = new string[] { "DotNetty-Default", "Microsoft-Azure-Devices" };

private readonly object _lock = new object();

protected override void OnEventSourceCreated(EventSource eventSource)
{
if (s_eventFilters.Any(filter => eventSource.Name.StartsWith(filter, StringComparison.OrdinalIgnoreCase)))
if (_eventFilters.Any(filter => eventSource.Name.StartsWith(filter, StringComparison.OrdinalIgnoreCase)))
{
base.OnEventSourceCreated(eventSource);
EnableEvents(
Expand Down

0 comments on commit 82e181c

Please sign in to comment.