From 2416eede6f97ea57a8f2c616aca61f9b36c7c9aa Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Sun, 9 May 2021 13:26:28 +0200 Subject: [PATCH] Add error message when receiving a faulty request --- src/infra/tcp_server.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/infra/tcp_server.rs b/src/infra/tcp_server.rs index 606b6bf..d32acc4 100644 --- a/src/infra/tcp_server.rs +++ b/src/infra/tcp_server.rs @@ -40,6 +40,7 @@ where .limit(4096) .error_handler(|err, _req| { // create custom error response + log::error!("API error: {}", err); actix_web::error::InternalError::from_response( err, HttpResponse::Conflict().finish().into(),