Chore: Remove debug console.log statements from server and client code

This commit is contained in:
nmemmert committed 2025-12-16 13:46:55 -05:00
1 parent 400953dfd7
commit 5ff9fd6c99
10 files changed
+8 -19

No files matched your search

-5
View File
@@ -51,19 +51,16 @@ class NotificationService {
async sendAlert(resource, incident, stats = null) {
// Check if incident is acknowledged
if (incident.acknowledged) {
console.log(`Incident ${incident.id} already acknowledged, skipping alert`);
return;
}
// Check maintenance windows
if (this.isInMaintenanceWindow(resource.id)) {
console.log(`Resource ${resource.name} is in maintenance window, skipping alert`);
return;
}
// Check quiet hours
if (this.isQuietHours(resource)) {
console.log(`Resource ${resource.name} is in quiet hours, skipping alert`);
return;
}
@@ -176,7 +173,6 @@ class NotificationService {
text: message,
html: htmlContent,
});
console.log(`Email sent for ${resource.name} to ${emailTo}`);
} catch (error) {
console.error('Email error:', error.message);
}
@@ -239,7 +235,6 @@ class NotificationService {
message,
timestamp: new Date().toISOString(),
});
console.log(`Webhook sent for ${resource.name}`);
} catch (error) {
console.error('Webhook error:', error.message);
}