diff --git a/server/routes/legacyAttachments.js b/server/routes/legacyAttachments.js index a208fe1d1..111546c66 100644 --- a/server/routes/legacyAttachments.js +++ b/server/routes/legacyAttachments.js @@ -4,7 +4,9 @@ import { ReactiveCache } from '/imports/reactiveCache'; import { getAttachmentWithBackwardCompatibility, getOldAttachmentStream } from '/models/lib/attachmentBackwardCompatibility'; // Ensure this file is loaded -console.log('Legacy attachments route loaded'); +if (process.env.DEBUG === 'true') { + console.log('Legacy attachments route loaded'); +} /** * Legacy attachment download route for CollectionFS compatibility