From 28510f8bba19760296ac7a4fd375194aa0f0b013 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 19 Dec 2022 21:39:17 -0800 Subject: [PATCH] fix warn message on 500 error codes --- web3_proxy/src/frontend/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3_proxy/src/frontend/errors.rs b/web3_proxy/src/frontend/errors.rs index 0feb0afb..30ee053f 100644 --- a/web3_proxy/src/frontend/errors.rs +++ b/web3_proxy/src/frontend/errors.rs @@ -224,7 +224,7 @@ impl IntoResponse for FrontendErrorResponse { // different status codes should get different error levels. 500s should warn. 400s should stat let code = status_code.as_u16(); if (500..600).contains(&code) { - warn!("user error {} {:?}: {:?}", code, err_msg, err); + warn!("server error {} {:?}: {:?}", code, err_msg, err); } else { trace!("user error {} {:?}: {:?}", code, err_msg, err); }