fix: Remove warning for deprecated /health endpoint its too noisy (#37518)

Co-authored-by: Aaron Ogle <51996+geekgonecrazy@users.noreply.github.com>
This commit is contained in:
dionisio-bot[bot] 2025-11-18 20:01:41 +00:00 committed by GitHub
parent 821cb72bb7
commit c6b2e7ec0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,8 +19,6 @@ function setDefaultHeaders(res: ServerResponse) {
* @deprecated Update infrastructure to use /livez and /readyz.
*/
WebApp.rawHandlers.use('/health', (_req: IncomingMessage, res: ServerResponse) => {
SystemLogger.warn('Deprecated /health endpoint was called. Please update to /livez or /readyz.');
setDefaultHeaders(res);
res.writeHead(200);