From 59115105445aa0bd1fd240e1be170b9bb56ca02e Mon Sep 17 00:00:00 2001 From: ikpil Date: Mon, 17 Jun 2024 23:15:43 +0900 Subject: [PATCH] fix compile error --- src/DotRecast.Recast.Demo/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(