Fixed issue where the torrent runner could crash.
This commit is contained in:
parent
5cf73e97af
commit
6a984cc145
1 changed files with 15 additions and 8 deletions
|
|
@ -33,14 +33,21 @@ public class TaskRunner(ILogger<TaskRunner> logger, IServiceProvider serviceProv
|
||||||
{
|
{
|
||||||
foreach (var entry in ex.Entries)
|
foreach (var entry in ex.Entries)
|
||||||
{
|
{
|
||||||
var proposedValues = entry.CurrentValues;
|
try
|
||||||
var databaseValues = await entry.GetDatabaseValuesAsync(stoppingToken);
|
{
|
||||||
|
var proposedValues = entry.CurrentValues;
|
||||||
|
var databaseValues = await entry.GetDatabaseValuesAsync(stoppingToken);
|
||||||
|
|
||||||
logger.LogWarning("DbUpdateConcurrencyException occurred:");
|
logger.LogWarning("DbUpdateConcurrencyException occurred:");
|
||||||
logger.LogWarning("Proposed Values:");
|
logger.LogWarning("Proposed Values:");
|
||||||
logger.LogWarning(JsonSerializer.Serialize(proposedValues));
|
logger.LogWarning(JsonSerializer.Serialize(proposedValues));
|
||||||
logger.LogWarning("Database Values:");
|
logger.LogWarning("Database Values:");
|
||||||
logger.LogWarning(JsonSerializer.Serialize(databaseValues));
|
logger.LogWarning(JsonSerializer.Serialize(databaseValues));
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// ignored
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue