Skip to content

Commit

Permalink
Merge pull request #1666 from bcgov/feature/hotfix
Browse files Browse the repository at this point in the history
 Mount CLS directly
  • Loading branch information
dhaselhan authored May 8, 2024
2 parents b50bf82 + d5ebc02 commit d38962c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion services/apps/alcs/src/main.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import { UserModule } from './user/user.module';
}),
ClsModule.forRoot({
global: true,
middleware: { mount: true },
}),
WinstonModule,
DocumentModule,
Expand Down
3 changes: 2 additions & 1 deletion services/apps/alcs/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from '@nestjs/platform-fastify';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import * as config from 'config';
import { ClsMiddleware } from 'nestjs-cls';
import { S3StreamLogger } from 's3-streamlogger';
import { install } from 'source-map-support';
import * as winston from 'winston';
Expand Down Expand Up @@ -148,7 +149,6 @@ function setupLogger() {
http: 4,
debug: 5,
verbose: 6,
log: 7,
},
transports:
config.get('ENV') === 'production'
Expand All @@ -170,6 +170,7 @@ async function bootstrap() {
},
);
app.useLogger(logger);
app.use(new ClsMiddleware().use);

const extraArg = process.argv[2];
if (extraArg === 'graph') {
Expand Down

0 comments on commit d38962c

Please sign in to comment.