mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(server): log http exceptions (#9996)
This commit is contained in:
parent
ce985ef8f8
commit
0f976edf96
9 changed files with 91 additions and 18 deletions
|
|
@ -20,10 +20,10 @@ async function bootstrap() {
|
|||
|
||||
const port = Number(process.env.IMMICH_PORT) || 3001;
|
||||
const app = await NestFactory.create<NestExpressApplication>(ApiModule, { bufferLogs: true });
|
||||
const logger = await app.resolve(ILoggerRepository);
|
||||
const logger = await app.resolve<ILoggerRepository>(ILoggerRepository);
|
||||
|
||||
logger.setAppName('ImmichServer');
|
||||
logger.setContext('ImmichServer');
|
||||
logger.setAppName('Api');
|
||||
logger.setContext('Bootstrap');
|
||||
app.useLogger(logger);
|
||||
app.set('trust proxy', ['loopback', 'linklocal', 'uniquelocal']);
|
||||
app.set('etag', 'strong');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue