summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/view
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-05-01 19:20:33 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-10 19:40:46 +0300
commitfb406667abbd6c776c17c107b51094b0ef3f5c0d (patch)
tree89b59e8c6c2d04e4bf1f619a371a706780486863 /ui/src/components/mail/view
parent9143b2e7917437d9b1c245b9fcb85928c0347404 (diff)
add debug! macro to replace eprintlns
Diffstat (limited to 'ui/src/components/mail/view')
-rw-r--r--ui/src/components/mail/view/thread.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/ui/src/components/mail/view/thread.rs b/ui/src/components/mail/view/thread.rs
index 52df9c7f..78f0304b 100644
--- a/ui/src/components/mail/view/thread.rs
+++ b/ui/src/components/mail/view/thread.rs
@@ -832,14 +832,11 @@ impl Component for ThreadView {
let op = context.accounts[self.coordinates.0]
.backend
.operation(envelope.hash(), mailbox.folder.hash());
- if cfg!(debug_assertions) {
- eprint!("{}:{}_{}: ", file!(), line!(), column!());
- eprintln!(
- "sending action edit for {}, {}",
- envelope.message_id(),
- op.description()
- );
- }
+ debug!(
+ "sending action edit for {}, {}",
+ envelope.message_id(),
+ op.description()
+ );
}
context.replies.push_back(UIEvent::Action(Tab(Edit(
self.coordinates,