Skip to content

Commit

Permalink
Adds path to route request (#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha authored Oct 4, 2024
1 parent 911d778 commit b3883c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rest-api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ app.use(express.json())

app.use((req, res, next) => {
logger.info({
msg: 'Incoming request',
msg: `Incoming request ${req.path}`,
method: req.method,
path: req.path,
query: req.query,
Expand All @@ -24,7 +24,7 @@ app.use((req, res, next) => {
const originalJson = res.json
res.json = function (body) {
logger.info({
msg: 'Outgoing response',
msg: `Outgoing response ${originalPath}`,
method: req.method,
path: originalPath,
statusCode: res.statusCode,
Expand Down

0 comments on commit b3883c0

Please sign in to comment.