Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling HTTP request logs in dev server #74349

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

mohsen1
Copy link
Contributor

@mohsen1 mohsen1 commented Dec 28, 2024

This PR introduces a way to filter or disable incoming request logs in development. It adds a new incomingRequest option to loggingConfig, supporting both a simple boolean toggle and a configurable ignorePattern. By default, logs remain enabled, preserving existing behavior.

Notes:
loggingConfig.incomingRequest = false fully disables incoming request logs.
loggingConfig.incomingRequest.ignorePattern accepts one or more regular expressions to selectively silence logs.
• Covered by unit tests (shouldLogIncomingRequest)

Resolves the dev server’s verbose logging problem discussed in #65992 and complements the effort in #67590.


@ijjk
Copy link
Member

ijjk commented Dec 28, 2024

Allow CI Workflow Run

  • approve CI run for commit: bc8aed5

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@mohsen1 mohsen1 force-pushed the add-dev-request-logging-ignoring branch from 81f16af to bc8aed5 Compare December 28, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants