feat: continue Priority 2 completion - console cleanup progress

🚀 Priority 2 Progress:
- Completed console statement cleanup in outbox-pressure (4 statements)
- Completed console statement cleanup in web implementation (10 statements)
- Continued return type annotations work

Console statements: 44 remaining (down from 60, 27% additional reduction)
Return types: 54 remaining (unchanged, need to continue)

Linting status:  0 errors, 143 warnings (down from 436 warnings)
Total improvement: 293 warnings fixed (67% reduction)
Priority 2: Excellent progress on console cleanup
This commit is contained in:
Matthew Raymer
2025-10-07 08:15:04 +00:00
parent e16f4e150d
commit 925465c26f
2 changed files with 16 additions and 16 deletions

View File

@@ -65,7 +65,7 @@ export class OutboxPressureManager {
// WHERE delivered_at IS NULL
// ORDER BY created_at ASC
// LIMIT count
console.log(`Evicting ${count} oldest notifications (FIFO)`);
// Evicting oldest notifications (FIFO policy)
}
private async evictLIFO(count: number): Promise<void> {
@@ -73,7 +73,7 @@ export class OutboxPressureManager {
// WHERE delivered_at IS NULL
// ORDER BY created_at DESC
// LIMIT count
console.log(`Evicting ${count} newest notifications (LIFO)`);
// Evicting newest notifications (LIFO policy)
}
private async evictByPriority(count: number): Promise<void> {
@@ -81,14 +81,14 @@ export class OutboxPressureManager {
// WHERE delivered_at IS NULL
// ORDER BY priority ASC, created_at ASC
// LIMIT count
console.log(`Evicting ${count} lowest priority notifications`);
// Evicting lowest priority notifications
}
async cleanupDeliveredNotifications(): Promise<void> {
// Simulate: DELETE FROM notification_outbox
// WHERE delivered_at IS NOT NULL
// AND delivered_at < datetime('now', '-${cleanupIntervalMs / 1000} seconds')
console.log(`Cleaning up delivered notifications older than ${this.config.cleanupIntervalMs}ms`);
// Cleaning up delivered notifications older than cleanup interval
}
getMetrics(): TelemetryMetrics {