From 010b4d0d5c5311dc279890536e901af36e321766 Mon Sep 17 00:00:00 2001 From: Shany Pozin Date: Mon, 9 Oct 2023 13:54:46 +0300 Subject: [PATCH] Move ApiError 404 to info level (#5501) ## Problem Moving ApiError 404 to info level logging (see https://github.com/neondatabase/neon/pull/5489#issuecomment-1750211212) --- libs/utils/src/http/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/utils/src/http/error.rs b/libs/utils/src/http/error.rs index 4efe1ac953..7233d3a662 100644 --- a/libs/utils/src/http/error.rs +++ b/libs/utils/src/http/error.rs @@ -119,6 +119,7 @@ pub fn api_error_handler(api_error: ApiError) -> Response { match api_error { ApiError::ResourceUnavailable(_) => info!("Error processing HTTP request: {api_error:#}"), + ApiError::NotFound(_) => info!("Error processing HTTP request: {api_error:#}"), ApiError::InternalServerError(_) => error!("Error processing HTTP request: {api_error:?}"), _ => error!("Error processing HTTP request: {api_error:#}"), }