From a7fa075e8cbf6bda4d2706562c54995b39eae5b3 Mon Sep 17 00:00:00 2001
From: Nutomic <me@nutomic.com>
Date: Fri, 1 Mar 2024 17:32:13 +0100
Subject: [PATCH] Make logs less verbose (fixes #3627) (#4490)

---
 crates/utils/src/error.rs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/crates/utils/src/error.rs b/crates/utils/src/error.rs
index 31f0707be4..fddbc1e550 100644
--- a/crates/utils/src/error.rs
+++ b/crates/utils/src/error.rs
@@ -209,11 +209,7 @@ cfg_if! {
     impl fmt::Display for LemmyError {
       fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         write!(f, "{}: ", &self.error_type)?;
-        // print anyhow including trace
-        // https://docs.rs/anyhow/latest/anyhow/struct.Error.html#display-representations
-        // this will print the anyhow trace (only if it exists)
-        // and if RUST_BACKTRACE=1, also a full backtrace
-        writeln!(f, "{:?}", self.inner)?;
+        writeln!(f, "{}", self.inner)?;
         fmt::Display::fmt(&self.context, f)
       }
     }