Skip to content

Commit

Permalink
MAP-2011 removing logging middleware (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrlee authored Feb 24, 2025
1 parent 9105f9c commit 0d953ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
22

3 changes: 0 additions & 3 deletions server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import session from 'express-session'
import ConnectRedis from 'connect-redis'
import setUpCsrf from './middleware/setUpCsrf'
import { createRedisClient } from './data/redisClient'
import RequestLogger from './middleware/requestLogger'

import createRouter from './routes'
import nunjucksSetup from './utils/nunjucksSetup'
Expand Down Expand Up @@ -187,8 +186,6 @@ export default function createApp(services: Services): Express {
express.static(path.join(process.cwd(), `/node_modules/govuk_frontend_toolkit/images`), cacheControl)
)

app.use(RequestLogger({ name: 'Use of force http', serializers: loggingSerialiser }))

const healthcheck = healthcheckFactory(
config.apis.oauth2.url,
config.apis.prison.url,
Expand Down
16 changes: 0 additions & 16 deletions server/middleware/requestLogger.ts

This file was deleted.

0 comments on commit 0d953ff

Please sign in to comment.