You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are three reasons for this change.
1. The code is easier to read
2. The [SuppressMessage] attribute is narrower and won't accidentally suppress another `catch (Exception)`
3. It works around a bug in Stryker.NET, see stryker-mutator/stryker-net#1845
Debugging.SelfLog.WriteLine($"[{GetType().FullName}] An exception was thrown while filtering property '{propertyName}'. Including the property in the log4net event.\n{filterException}");
Debugging.SelfLog.WriteLine($"[{GetType().FullName}] An exception was thrown while filtering property '{propertyName}'. Including the property in the log4net event.\n{filterException}");
237
+
returntrue;
238
+
}
239
+
}
240
+
231
241
/// <summary>
232
242
/// Render a <see cref="LogEventPropertyValue"/> as <see cref="string"/>, without quotes if the value is a <see cref="ScalarValue"/> containing a <see cref="string"/>.
233
243
/// This is appropriate to use for an XML attribute.
Debugging.SelfLog.WriteLine($"[{GetType().FullName}] An exception was thrown while formatting an exception. Using the default exception formatter.\n{formattingException}");
0 commit comments