From bd1842d45c67cebd7da0886b9e32030c013f0230 Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sun, 14 Sep 2025 18:18:20 +0200 Subject: [PATCH] Remove verbose initialization logs - Remove 'PayloadCMS Mailing Plugin initialized successfully' log - Remove 'Scheduled initial email processing job in queue' log - Keep error logging for failed job scheduling - Reduce console noise during plugin initialization - Bump version to 0.4.2 --- package.json | 2 +- src/plugin.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 85bef84..eafd657 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtr-dev/payload-mailing", - "version": "0.4.1", + "version": "0.4.2", "description": "Template-based email system with scheduling and job processing for PayloadCMS", "type": "module", "main": "dist/index.js", diff --git a/src/plugin.ts b/src/plugin.ts index 8cd05c1..911f2f4 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -106,12 +106,9 @@ export const mailingPlugin = (pluginConfig: MailingPluginConfig) => (config: Con }, } as MailingContext - console.log('PayloadCMS Mailing Plugin initialized successfully') - // Schedule the initial email processing job try { await scheduleEmailsJob(payload, queueName, 60000) // Schedule in 1 minute - console.log(`🔄 Scheduled initial email processing job in queue: ${queueName}`) } catch (error) { console.error('Failed to schedule email processing job:', error) }