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.IO;
using System.Threading;
using DotRecast.Core; using DotRecast.Core;
using DotRecast.Recast.Demo.Logging.Sinks; using DotRecast.Recast.Demo.Logging.Sinks;
using Serilog; using Serilog;
@ -10,6 +11,8 @@ public static class Program
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
Thread.CurrentThread.Name ??= "main";
InitializeWorkingDirectory(); InitializeWorkingDirectory();
InitializeLogger(); InitializeLogger();
StartDemo(); StartDemo();
@ -22,7 +25,6 @@ public static class Program
.MinimumLevel.Verbose() .MinimumLevel.Verbose()
.Enrich.WithThreadId() .Enrich.WithThreadId()
.Enrich.WithThreadName() .Enrich.WithThreadName()
.Enrich.WithProperty(ThreadNameEnricher.ThreadNamePropertyName, "main")
.WriteTo.Async(c => c.LogMessageBroker(outputTemplate: format)) .WriteTo.Async(c => c.LogMessageBroker(outputTemplate: format))
.WriteTo.Async(c => c.Console(outputTemplate: format)) .WriteTo.Async(c => c.Console(outputTemplate: format))
.WriteTo.Async(c => c.File( .WriteTo.Async(c => c.File(