()
| 29 | const log = createLogger('Infrastructure'); |
| 30 | |
| 31 | export async function initializeInfrastructure(): Promise<void> { |
| 32 | log.info('Initializing infrastructure systems'); |
| 33 | |
| 34 | try { |
| 35 | // Initialize configuration infrastructure |
| 36 | await initializeConfigInfrastructure(); |
| 37 | |
| 38 | // Notify that infrastructure is ready |
| 39 | globalEventBus.emit('infrastructure:ready'); |
| 40 | |
| 41 | log.info('Infrastructure systems initialized successfully'); |
| 42 | } catch (error) { |
| 43 | log.error('Failed to initialize infrastructure systems', error); |
| 44 | throw error; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | export async function destroyInfrastructure(): Promise<void> { |
| 49 | log.info('Shutting down infrastructure systems'); |
nothing calls this directly
no test coverage detected