Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update LoggingEventSource.cs
  • Loading branch information
Youssef1313 authored May 15, 2020
commit 3300f162e3ec5e67bcb786d32434c99311317f15
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ private void FireChangeToken()
[NonEvent]
private static LoggerFilterRule[] ParseFilterSpec(string filterSpec, LogLevel defaultLevel)
{
if (filterSpec.Length == 0)
if (filterSpec?.Length == 0)
{
return new[] { new LoggerFilterRule(typeof(EventSourceLoggerProvider).FullName, null, defaultLevel, null) };
}
Expand Down