Skip to content

Commit

Permalink
Improve failure logging on lift export (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonleenaylor authored May 25, 2023
1 parent 3178d80 commit 599cb1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Backend/Controllers/LiftController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ internal async Task<bool> CreateLiftExportThenSignal(string projectId, string us
await _notifyService.Clients.All.SendAsync(CombineHub.DownloadReady, userId);
return true;
}
catch
catch (Exception e)
{
_logger.LogError("Error exporting project {ProjectId}", projectId);
_logger.LogError("Error exporting project {ProjectId}{NewLine}{Message}:{ExceptionStack}",
projectId, Environment.NewLine, e.Message, e.StackTrace);
_liftService.DeleteExport(userId);
await _notifyService.Clients.All.SendAsync(CombineHub.ExportFailed, userId);
throw;
Expand Down

0 comments on commit 599cb1c

Please sign in to comment.