Don't log so much Avalonia stuff even when debugging tyvm

This commit is contained in:
Robert committed 2025-12-16 22:37:10 +01:00
1 parent 55dca6cebb
commit e2cb73e327
1 file changed
-5
-5
View File
@@ -22,13 +22,8 @@ public class SerilogAvaloniaSink : ILogSink
{
SerilogLogLevel logLevel = GetSerilogLogLevel(level, area);
#if DEBUG
// Except with binding errors, ignore anything that is information or lower
return true;
#else
// Ignore binding errors in release builds, shoo
return area != "Binding" && logLevel > SerilogLogLevel.Information && _logger.IsEnabled(logLevel);
#endif
}
/// <inheritdoc />