Removes excessive logging statements
Cleans up the codebase by removing unnecessary console log statements. These logs were primarily used for debugging and are no longer needed in the production code. This reduces noise in the console and improves overall performance.
This commit is contained in:
parent
383eab7524
commit
fafad16926
24 changed files with 4 additions and 275 deletions
|
|
@ -8,14 +8,12 @@ import { ManagerFactory } from './factories/ManagerFactory.js';
|
|||
* Initialize the calendar application with simple direct calls
|
||||
*/
|
||||
async function initializeCalendar(): Promise<void> {
|
||||
console.log('🗓️ Initializing Calendar Plantempus with factory pattern...');
|
||||
|
||||
try {
|
||||
// Use the singleton calendar configuration
|
||||
const config = calendarConfig;
|
||||
|
||||
// Initialize the CalendarTypeFactory before creating managers
|
||||
console.log('🏭 Initializing CalendarTypeFactory...');
|
||||
CalendarTypeFactory.initialize();
|
||||
|
||||
// Create managers using factory pattern
|
||||
|
|
@ -28,8 +26,6 @@ async function initializeCalendar(): Promise<void> {
|
|||
// Initialize all managers
|
||||
await managerFactory.initializeManagers(managers);
|
||||
|
||||
console.log('🎊 Calendar Plantempus initialized successfully!');
|
||||
console.log('📊 Initialization Report:', managers.calendarManager.getInitializationReport());
|
||||
|
||||
// Expose to window for debugging
|
||||
(window as any).calendarDebug = {
|
||||
|
|
@ -38,7 +34,6 @@ async function initializeCalendar(): Promise<void> {
|
|||
};
|
||||
|
||||
} catch (error) {
|
||||
console.error('💥 Calendar initialization failed:', error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
|
@ -47,11 +42,9 @@ async function initializeCalendar(): Promise<void> {
|
|||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
initializeCalendar().catch(error => {
|
||||
console.error('Failed to initialize calendar:', error);
|
||||
});
|
||||
});
|
||||
});
|
||||
} else {
|
||||
initializeCalendar().catch(error => {
|
||||
console.error('Failed to initialize calendar:', error);
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue