mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(server): app module (#13193)
This commit is contained in:
parent
7ee0221c8e
commit
5d0a4bb1a5
18 changed files with 126 additions and 134 deletions
|
|
@ -5,7 +5,7 @@ import { serverVersion } from 'src/constants';
|
|||
import { IConfigRepository } from 'src/interfaces/config.interface';
|
||||
import { ILoggerRepository } from 'src/interfaces/logger.interface';
|
||||
import { WebSocketAdapter } from 'src/middleware/websocket.adapter';
|
||||
import { isStartUpError } from 'src/utils/events';
|
||||
import { isStartUpError } from 'src/services/storage.service';
|
||||
import { otelStart } from 'src/utils/instrumentation';
|
||||
|
||||
export async function bootstrap() {
|
||||
|
|
@ -15,7 +15,6 @@ export async function bootstrap() {
|
|||
|
||||
const app = await NestFactory.create(MicroservicesModule, { bufferLogs: true });
|
||||
const logger = await app.resolve(ILoggerRepository);
|
||||
logger.setAppName('Microservices');
|
||||
logger.setContext('Bootstrap');
|
||||
app.useLogger(logger);
|
||||
app.useWebSocketAdapter(new WebSocketAdapter(app));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue