From f6e59c355e1388c3b3f1e9e9bf43f6e40fb6270b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 22 Apr 2016 15:10:22 +0200 Subject: [PATCH] Remove "caused by" marker As we are in debug mode anyways, a developer using this should know by the trace number that the next line is the cause. As we use the debug!() macro here, this would be printed on a new line, which is rather distracting instead of helpful. Therefor this patch removes this line. --- libimagutil/src/trace.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/libimagutil/src/trace.rs b/libimagutil/src/trace.rs index 9f25cfda..5b22c84c 100644 --- a/libimagutil/src/trace.rs +++ b/libimagutil/src/trace.rs @@ -67,7 +67,6 @@ fn count_error_causes(e: &Error) -> u64 { fn print_trace_dbg(idx: u64, e: &Error) { debug!("ERROR[{:>4}]: {}", idx, e.description()); if e.cause().is_some() { - debug!(" -- caused by:"); print_trace_dbg(idx + 1, e.cause().unwrap()); } }