forked from ddrilling/AsbCloudServer
Logging on bacground task fails
This commit is contained in:
parent
86e929d920
commit
23b044e10e
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user