Log full exceptions

This commit is contained in:
2025-11-03 19:26:43 +09:00
parent a91dd6d034
commit 11a8fa381e
4 changed files with 26 additions and 3 deletions

View File

@ -5,6 +5,7 @@ using Hcs.WebApp.BackgroundServices.ResultGetters;
using Hcs.WebApp.Config;
using Hcs.WebApp.Data.Hcs;
using Hcs.WebApp.Services;
using Hcs.WebApp.Utils;
namespace Hcs.WebApp.BackgroundServices
{
@ -80,7 +81,7 @@ namespace Hcs.WebApp.BackgroundServices
catch (Exception e)
{
var headquartersService = scope.ServiceProvider.GetRequiredService<HeadquartersService>();
await headquartersService.SetOperationEndedWithFailAsync(entry.operation.Id, e.Message);
await headquartersService.SetOperationEndedWithFailAsync(entry.operation.Id, e.CombineMessages());
entry.state.done = true;
}