Skip to content

Commit

Permalink
Merge pull request #1490 from bcgov/feature/ALCS-1757
Browse files Browse the repository at this point in the history
Logging changes
  • Loading branch information
dhaselhan authored Mar 7, 2024
2 parents 760dd5c + 540ac28 commit bb0fcd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions services/apps/alcs/src/main.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ import { UserModule } from './user/user.module';
RedisModule,
LoggerModule.forRoot({
pinoHttp: {
redact: {
paths: ['req.headers'],
},
level: config.get('LOG_LEVEL'),
autoLogging: false, //Disable auto-logging every request/response for now
transport:
Expand Down
2 changes: 1 addition & 1 deletion services/apps/alcs/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as config from 'config';
import { Logger } from 'nestjs-pino';
import { install } from 'source-map-support';
import { generateModuleGraph } from './commands/graph';
import { importApplications, importNOIs } from './commands/import';
import { importApplications } from './commands/import';
import { MainModule } from './main.module';

const registerSwagger = (app: NestFastifyApplication) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class KeycloakConfigService implements KeycloakConnectOptionsFactory {
'confidential-port': 0,
tokenValidation: TokenValidation.OFFLINE,
verifyTokenAudience: true,
logLevels: [], //Disable Expired Token Messages
};
}
}

0 comments on commit bb0fcd3

Please sign in to comment.