Skip to content

feat: disable request logging#5435

Merged
mcollina merged 10 commits intofastify:mainfrom
SamSalvatico:fix/5409-disable-request-logging
May 2, 2024
Merged

feat: disable request logging#5435
mcollina merged 10 commits intofastify:mainfrom
SamSalvatico:fix/5409-disable-request-logging

Conversation

@SamSalvatico
Copy link
Copy Markdown
Contributor

@SamSalvatico SamSalvatico commented Apr 30, 2024

feat for issue: #5409

Check for the disableRequestLogging to be false or undefined before logging an error or a 404 during the request

Checklist

@Uzlopak Uzlopak changed the title Fix: [#5409] disable request logging fix: disable request logging Apr 30, 2024
Copy link
Copy Markdown
Member

@metcoder95 metcoder95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!
Tho, I'm over the fence of considering this as a fix as was never stated that this was supported; I'd rather consider it more an enhancement.

Sadly tests are failing.

@SamSalvatico SamSalvatico changed the title fix: disable request logging feat: disable request logging May 2, 2024
Copy link
Copy Markdown
Member

@metcoder95 metcoder95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@metcoder95
Copy link
Copy Markdown
Member

Forgot to mention, can we add some documentation of this within the disableRequestLogging option documentation?

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey ho lets go.

Copy link
Copy Markdown
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit

Copy link
Copy Markdown
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets go

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 4, 2025

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

disableRequestLogging should disable logs in default error handler

4 participants