Skip to content

Commit

Permalink
fix: modify internal routes for logging (#424)
Browse files Browse the repository at this point in the history
chore: update dependencies and modify internal routes for logging
  • Loading branch information
kalinkrustev authored Dec 20, 2024
1 parent 85461af commit 262cb0d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 44 deletions.
77 changes: 34 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
"tapes": "4.1.0"
},
"overrides": {
"postcss": {
"nanoid": "^3.3.8"
},
"shins": {
"ejs": "^3.1.7",
"sanitize-html": "2.12.1",
Expand Down
2 changes: 1 addition & 1 deletion src/util/hapi/plugins/loggingPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const { env } = require('node:process')
const { asyncStorage } = require('@mojaloop/central-services-logger/src/contextLogger')
const { logger } = require('../../../logger')

const INTERNAL_ROUTES = env.LOG_INTERNAL_ROUTES ? env.LOG_INTERNAL_ROUTES.split(',') : ['/health', '/metrics', '/ready']
const INTERNAL_ROUTES = env.LOG_INTERNAL_ROUTES ? env.LOG_INTERNAL_ROUTES.split(',') : ['/health', '/metrics', '/live']
const TRACE_ID_HEADER = env.LOG_TRACE_ID_HEADER ?? 'traceid'

const loggingPlugin = {
Expand Down

0 comments on commit 262cb0d

Please sign in to comment.