refactor: logging (#1318)

This commit is contained in:
Jason Rasmussen 2023-01-13 09:23:12 -05:00 committed by GitHub
parent 92ca447f33
commit ba04b753de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 19 deletions

View file

@ -1,13 +1,16 @@
import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { SERVER_VERSION } from 'apps/immich/src/constants/server_version.constant';
import { getLogLevels } from '@app/common';
import { RedisIoAdapter } from '../../immich/src/middlewares/redis-io.adapter.middleware';
import { MicroservicesModule } from './microservices.module';
const logger = new Logger('ImmichMicroservice');
async function bootstrap() {
const app = await NestFactory.create(MicroservicesModule);
const app = await NestFactory.create(MicroservicesModule, {
logger: getLogLevels(),
});
const redisIoAdapter = new RedisIoAdapter(app);
await redisIoAdapter.connectToRedis();