summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty/src/logging.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/alacritty/src/logging.rs b/alacritty/src/logging.rs
index e2636b81..a7ca3ac7 100644
--- a/alacritty/src/logging.rs
+++ b/alacritty/src/logging.rs
@@ -110,11 +110,6 @@ impl log::Log for Logger {
let now = time::strftime("%F %T.%f", &time::now()).unwrap();
let msg = format!("[{}] [{:<5}] [{}] {}\n", now, record.level(), target, record.args());
- // Write to stdout.
- if let Ok(mut stdout) = self.stdout.lock() {
- let _ = stdout.write_all(msg.as_ref());
- }
-
if let Ok(mut logfile) = self.logfile.lock() {
// Write to logfile.
let _ = logfile.write_all(msg.as_ref());
@@ -124,6 +119,11 @@ impl log::Log for Logger {
self.message_bar_log(record, &logfile.path.to_string_lossy());
}
}
+
+ // Write to stdout.
+ if let Ok(mut stdout) = self.stdout.lock() {
+ let _ = stdout.write_all(msg.as_ref());
+ }
}
fn flush(&self) {}