Skip to content

Commit

Permalink
chore: reduce verbosity of logs by eliminating for metric and healthc…
Browse files Browse the repository at this point in the history
…heck logs

Signed-off-by: Case Wylie <[email protected]>
  • Loading branch information
cmwylie19 committed Dec 5, 2024
1 parent 237febf commit 5463030
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ export class Controller {
const startTime = Date.now();

res.on("finish", () => {
const excludedRoutes = ["/healthz", "/metrics"];

Check warning on line 266 in src/lib/controller/index.ts

View check run for this annotation

Codecov / codecov/patch

src/lib/controller/index.ts#L266

Added line #L266 was not covered by tests
if (excludedRoutes.includes(req.originalUrl)) {
return;

Check warning on line 268 in src/lib/controller/index.ts

View check run for this annotation

Codecov / codecov/patch

src/lib/controller/index.ts#L268

Added line #L268 was not covered by tests
}

const elapsedTime = Date.now() - startTime;
const message = {
uid: req.body?.request?.uid,
Expand Down

0 comments on commit 5463030

Please sign in to comment.