From dd062c6752b24026fdf178526d9d775f752e7b3e Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Tue, 30 Apr 2024 17:03:04 +0200 Subject: [PATCH] [backend/drive] Fix logExisting oversight causing uris not to be logged in all cases --- Iceshrimp.Backend/Core/Services/DriveService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Iceshrimp.Backend/Core/Services/DriveService.cs b/Iceshrimp.Backend/Core/Services/DriveService.cs index ca33131d..8b72cbb1 100644 --- a/Iceshrimp.Backend/Core/Services/DriveService.cs +++ b/Iceshrimp.Backend/Core/Services/DriveService.cs @@ -85,6 +85,9 @@ public class DriveService( await db.SaveChangesAsync(); return clonedFile; } + + if (!logExisting) + logger.LogDebug("Storing file {uri} for user {userId}", uri, user.Id); var res = await httpClient.GetAsync(uri);