From b5066e8fc538a3bea1fee512f6282b6685a45db5 Mon Sep 17 00:00:00 2001 From: Rotem Yaari Date: Wed, 17 Jul 2019 22:18:23 +0300 Subject: [PATCH] Log internal server errors with an ERROR log level --- actix-http/src/response.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actix-http/src/response.rs b/actix-http/src/response.rs index ce986a472..124bf5f92 100644 --- a/actix-http/src/response.rs +++ b/actix-http/src/response.rs @@ -52,6 +52,9 @@ impl Response { #[inline] pub fn from_error(error: Error) -> Response { let mut resp = error.as_response_error().render_response(); + if resp.head.status == StatusCode::INTERNAL_SERVER_ERROR { + error!("Internal Server Error: {:?}", error); + } resp.error = Some(error); resp }