diff --git a/src/DotRecast.Recast.Demo/Program.cs b/src/DotRecast.Recast.Demo/Program.cs index b2696b7..c0af359 100644 --- a/src/DotRecast.Recast.Demo/Program.cs +++ b/src/DotRecast.Recast.Demo/Program.cs @@ -1,4 +1,5 @@ using System.IO; +using System.Threading; using DotRecast.Core; using DotRecast.Recast.Demo.Logging.Sinks; using Serilog; @@ -10,6 +11,8 @@ public static class Program { public static void Main(string[] args) { + Thread.CurrentThread.Name ??= "main"; + InitializeWorkingDirectory(); InitializeLogger(); StartDemo(); @@ -22,7 +25,6 @@ public static class Program .MinimumLevel.Verbose() .Enrich.WithThreadId() .Enrich.WithThreadName() - .Enrich.WithProperty(ThreadNameEnricher.ThreadNamePropertyName, "main") .WriteTo.Async(c => c.LogMessageBroker(outputTemplate: format)) .WriteTo.Async(c => c.Console(outputTemplate: format)) .WriteTo.Async(c => c.File(