Logging on bacground task fails

This commit is contained in:
Фролов 2021-09-23 17:59:31 +05:00
parent 86e929d920
commit 23b044e10e

View File

@ -1,5 +1,7 @@
using AsbCloudApp.Services; using AsbCloudApp.Services;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using System;
using System.Diagnostics;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -25,9 +27,10 @@ namespace AsbCloudInfrastructure.Services
else else
await Task.Delay(100, token).ConfigureAwait(false); await Task.Delay(100, token).ConfigureAwait(false);
} }
catch catch(Exception ex)
{ {
//logger ? Trace.TraceError(ex.Message);
Console.WriteLine(ex.Message);
} }
} }
} }