mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-11 04:43:59 +00:00
cleanup: remove debug logging from email config components
This commit is contained in:
parent
aeb98eb86c
commit
5282bfef2f
2 changed files with 0 additions and 16 deletions
|
|
@ -40,16 +40,6 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {
|
|||
const [showProviders, setShowProviders] = createSignal(false);
|
||||
const [showAdvanced, setShowAdvanced] = createSignal(false);
|
||||
|
||||
// Debug logging
|
||||
createEffect(() => {
|
||||
console.log('EmailProviderSelect received config:', {
|
||||
server: props.config.server,
|
||||
port: props.config.port,
|
||||
from: props.config.from,
|
||||
enabled: props.config.enabled
|
||||
});
|
||||
});
|
||||
|
||||
// Load email providers
|
||||
createEffect(async () => {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -263,7 +263,6 @@ export function Alerts() {
|
|||
if (activeTab() === 'destinations') {
|
||||
// Reload email config from server when switching to destinations tab
|
||||
NotificationsAPI.getEmailConfig().then(emailConfigData => {
|
||||
console.log('Loading email config from API:', emailConfigData);
|
||||
setEmailConfig({
|
||||
enabled: emailConfigData.enabled,
|
||||
provider: emailConfigData.provider || '',
|
||||
|
|
@ -280,7 +279,6 @@ export function Alerts() {
|
|||
retryDelay: 5,
|
||||
rateLimit: 60
|
||||
});
|
||||
console.log('Email config after setting:', emailConfig());
|
||||
}).catch(err => {
|
||||
console.error('Failed to reload email configuration:', err);
|
||||
});
|
||||
|
|
@ -1442,10 +1440,6 @@ function DestinationsTab(props: DestinationsTabProps) {
|
|||
const [testingEmail, setTestingEmail] = createSignal(false);
|
||||
const [testingWebhook, setTestingWebhook] = createSignal<string | null>(null);
|
||||
|
||||
// Debug logging
|
||||
createEffect(() => {
|
||||
console.log('DestinationsTab emailConfig:', props.emailConfig());
|
||||
});
|
||||
|
||||
// Load webhooks on mount (email config is now loaded in parent)
|
||||
onMount(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue