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:
parent
55dca6cebb
commit
e2cb73e327
@ -22,13 +22,8 @@ public class SerilogAvaloniaSink : ILogSink
|
|||||||
{
|
{
|
||||||
SerilogLogLevel logLevel = GetSerilogLogLevel(level, area);
|
SerilogLogLevel logLevel = GetSerilogLogLevel(level, area);
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
// Except with binding errors, ignore anything that is information or lower
|
// 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);
|
return area != "Binding" && logLevel > SerilogLogLevel.Information && _logger.IsEnabled(logLevel);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user