filter trace messages from sample display

This commit is contained in:
Caelan Sayler
2025-03-12 22:51:57 +00:00
committed by Caelan
parent 870cad511c
commit 0bb8161bd7
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ public class MemoryLogger : IVelopackLogger
public void Log(VelopackLogLevel logLevel, string message, Exception exception)
{
if (logLevel < VelopackLogLevel.Information) return;
lock (_sb) {
message = $"{logLevel}: {message}";
if (exception != null) message += "\n" + exception.ToString();

View File

@@ -28,6 +28,7 @@ public class MemoryLogger : IVelopackLogger
public void Log(VelopackLogLevel logLevel, string message, Exception exception)
{
if (logLevel < VelopackLogLevel.Information) return;
lock (_sb) {
message = $"{logLevel}: {message}";
if (exception != null) message += "\n" + exception.ToString();