From e10a2c02b3c916a23ca9a29ecc7c705499d30449 Mon Sep 17 00:00:00 2001 From: Arata Date: Fri, 23 Aug 2024 15:18:23 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Error=E3=81=AE=E3=82=B3=E3=83=B3?= =?UTF-8?q?=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88=E3=82=92=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=81=AB=E5=87=BA=E5=8A=9B=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/sos24-presentation/src/error/convert_error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/sos24-presentation/src/error/convert_error.rs b/crates/sos24-presentation/src/error/convert_error.rs index 4ec2252..82abf37 100644 --- a/crates/sos24-presentation/src/error/convert_error.rs +++ b/crates/sos24-presentation/src/error/convert_error.rs @@ -744,6 +744,9 @@ impl From for AppError { impl From for AppError { fn from(error: anyhow::Error) -> AppError { + // anyhow::Errorのコンテキストが破棄されてしまうので、ここでログに出力する + tracing::error!("{:#}", error); + AppError::new( StatusCode::INTERNAL_SERVER_ERROR, "internal-error".to_string(),