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:
Janus Knudsen 2025-08-31 22:39:09 +02:00
parent 383eab7524
commit fafad16926
24 changed files with 4 additions and 275 deletions

View file

@ -27,7 +27,6 @@ export class CalendarTypeFactory {
*/
static initialize(): void {
if (this.isInitialized) {
console.warn('CalendarModeFactory: Already initialized, skipping');
return;
}
@ -45,7 +44,6 @@ export class CalendarTypeFactory {
});
this.isInitialized = true;
console.log('CalendarModeFactory: Initialized with default renderers', Array.from(this.renderers.keys()));
}
/**
@ -53,7 +51,6 @@ export class CalendarTypeFactory {
*/
static registerRenderers(type: CalendarMode, config: RendererConfig): void {
this.renderers.set(type, config);
console.log(`CalendarModeFactory: Registered renderers for type '${type}'`);
}
/**
@ -63,7 +60,6 @@ export class CalendarTypeFactory {
const renderers = this.renderers.get(type);
if (!renderers) {
console.warn(`CalendarModeFactory: No renderers found for type '${type}', falling back to 'date'`);
return this.renderers.get('date')!;
}
@ -110,6 +106,5 @@ export class CalendarTypeFactory {
*/
static clear(): void {
this.renderers.clear();
console.log('CalendarModeFactory: All renderers cleared');
}
}

View file

@ -37,7 +37,6 @@ export class ManagerFactory {
calendarManager: CalendarManager;
dragDropManager: DragDropManager;
} {
console.log('🏭 ManagerFactory: Creating managers with proper DI...');
// Create managers in dependency order
const eventManager = new EventManager(eventBus);
@ -58,7 +57,6 @@ export class ManagerFactory {
scrollManager
);
console.log('✅ ManagerFactory: All managers created successfully');
return {
eventManager,
@ -79,13 +77,10 @@ export class ManagerFactory {
calendarManager: CalendarManager;
[key: string]: any;
}): Promise<void> {
console.log('🚀 ManagerFactory: Initializing managers...');
try {
await managers.calendarManager.initialize();
console.log('✅ ManagerFactory: All managers initialized successfully');
} catch (error) {
console.error('❌ ManagerFactory: Manager initialization failed:', error);
throw error;
}
}