diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-04-22 15:10:22 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-04-22 15:10:24 +0200 |
commit | f6e59c355e1388c3b3f1e9e9bf43f6e40fb6270b (patch) | |
tree | 1c5305dc0d23faa1dbcf270db883b4db12ab2c81 /libimagutil | |
parent | ad4e73399ff98b6f34bc68a40f2a4b19475cc833 (diff) |
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.
Diffstat (limited to 'libimagutil')
-rw-r--r-- | libimagutil/src/trace.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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()); } } |