Skip to content

Commit

Permalink
Moved request logger to catch OIDC callback request for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
glenndehaan committed Sep 22, 2024
1 parent d475c1c commit b06a4ed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ app.get('/_health', (req, res) => {
});
});

/**
* Request logger
*/
app.use((req, res, next) => {
log.info(`[Web]: ${req.originalUrl}`);
next();
});

/**
* Initialize OIDC
*/
Expand All @@ -97,14 +105,6 @@ app.use(cookieParser());
*/
app.use(flashMessage);

/**
* Request logger
*/
app.use((req, res, next) => {
log.info(`[Web]: ${req.originalUrl}`);
next();
});

/**
* Serve static public dir
*/
Expand Down

0 comments on commit b06a4ed

Please sign in to comment.