diff --git a/api/Core/Services/External/BackgroundRemoval/ImageBackgroundRemoverService.cs b/api/Core/Services/External/BackgroundRemoval/ImageBackgroundRemoverService.cs index 4396f3e..8fe00df 100644 --- a/api/Core/Services/External/BackgroundRemoval/ImageBackgroundRemoverService.cs +++ b/api/Core/Services/External/BackgroundRemoval/ImageBackgroundRemoverService.cs @@ -2,6 +2,7 @@ using System.Net.Http.Headers; using api.Core.Options; using Microsoft.Extensions.Options; +using Serilog; using Shared.Exceptions; namespace api.Core.Services.External.BackgroundRemoval; @@ -24,6 +25,8 @@ public async Task RemoveBackground(byte[] imageBytes) if (response.StatusCode != HttpStatusCode.OK) { + Log.Error(response.StatusCode.ToString()); + Log.Error(response.Content.ReadAsStringAsync().Result); throw new AppException("Failed to remove background from image."); }