From 29e6f598643ba7ea277bb5c21972f2a4af62ae8f Mon Sep 17 00:00:00 2001 From: rasul Date: Tue, 7 Apr 2020 12:58:05 -0500 Subject: [PATCH] log error message --- src/id.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/id.rs b/src/id.rs index 30e0415..fe0b9eb 100644 --- a/src/id.rs +++ b/src/id.rs @@ -65,7 +65,10 @@ impl FromSql for Id { match Uuid::parse_str(s) { Ok(id) => return Ok(Self(id)), - Err(e) => Err(FromSqlError::Other(Box::from(e))), + Err(e) => { + log::error!("{}({}) :: Uuid::parse_str(\"{}\") :: {}", file!(), line!(), s, e); + Err(FromSqlError::Other(Box::from(e))) + } } } }