From 4bcb65ddc4c43ad8c9560993436c52c2f135d42e Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 6 Jul 2025 11:32:23 +0200 Subject: [PATCH] Fix CDN log prefix when fixing attachments --- src/cdn/Server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cdn/Server.ts b/src/cdn/Server.ts index cc3f6830..287b2950 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts @@ -138,19 +138,19 @@ export class CDNServer extends Server { where: { url: Like("%?ex=%") }, }); if (attachmentsToFix.length === 0) { - this.log("verbose", "[Server] No attachments to fix"); + this.log("verbose", "[CDN] No attachments to fix"); return; } this.log( "verbose", - `[Server] Found ${attachmentsToFix.length} attachments to fix`, + `[CDN] Found ${attachmentsToFix.length} attachments to fix`, ); for (const attachment of attachmentsToFix) { attachment.url = attachment.url.split("?ex=")[0]; attachment.proxy_url = attachment.proxy_url?.split("?ex=")[0]; await attachment.save(); - this.log("verbose", `[Server] Fixed attachment ${attachment.id}`); + this.log("verbose", `[CDN] Fixed attachment ${attachment.id}`); } } }