Skip to content

Commit

Permalink
Merge branch 'main' into iain/fix-preview-service-acceptance-action
Browse files Browse the repository at this point in the history
  • Loading branch information
iainsproat committed Sep 7, 2024
2 parents 9763e1c + 7c55af8 commit 965073e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/preview-service/src/observability/expressLogging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export const loggingExpressMiddleware = pinoHttp({
// and we don't really care about 3xx stuff
// all the user related 4xx responses are treated as info
customLogLevel: (req, res, error) => {
if (req.url?.startsWith('/metrics')) {
return 'debug'
}
if (res.statusCode >= 400 && res.statusCode < 500) {
return 'info'
} else if (res.statusCode >= 500 || error) {
Expand Down

0 comments on commit 965073e

Please sign in to comment.