fix compile error

This commit is contained in:
ikpil 2024-06-17 23:15:43 +09:00
parent f54b586d75
commit 5911510544
1 changed files with 3 additions and 1 deletions

View File

@ -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(