1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2026-02-04 02:43:32 +00:00

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

This commit is contained in:
Robert 2025-12-16 22:37:10 +01:00
parent 55dca6cebb
commit e2cb73e327

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 />