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 1/2] 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) } From 0d295603ef225dfc1f6d87633c9c735c37488133 Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sun, 14 Sep 2025 18:33:25 +0200 Subject: [PATCH 2/2] Update development documentation for silent plugin initialization - Remove reference to removed 'PayloadCMS Mailing Plugin initialized successfully' log - Add note explaining that plugin initializes silently on success - Clarify that absence of errors indicates successful initialization - Keep documentation aligned with actual plugin behavior - Bump version to 0.4.3 --- DEVELOPMENT.md | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index adb6f20..857236e 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -126,9 +126,10 @@ When you start the dev server, look for these messages: 🎯 Test interface will be available at: /mailing-test ✅ Example email templates created successfully -PayloadCMS Mailing Plugin initialized successfully ``` +**Note**: The plugin initializes silently on success (no "initialized successfully" message). If you see no errors, the plugin loaded correctly. + ## Troubleshooting ### Server won't start diff --git a/package.json b/package.json index eafd657..848f0fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtr-dev/payload-mailing", - "version": "0.4.2", + "version": "0.4.3", "description": "Template-based email system with scheduling and job processing for PayloadCMS", "type": "module", "main": "dist/index.js",