summaryrefslogtreecommitdiffstats
path: root/zellij-client
diff options
context:
space:
mode:
authorPaweł Palenica <pawelpalenica11@gmail.com>2021-07-13 23:22:11 -0700
committerPaweł Palenica <pawelpalenica11@gmail.com>2021-07-13 23:29:04 -0700
commitb15cfba6e1c6227395a4f8cd2a625bd75659092e (patch)
tree1175c031bd191ae0216e7f75bdc2238fb7c81f6a /zellij-client
parenta38c176646fcbe8f10d71c32e955674ffd7b669d (diff)
Apply code review suggestions. Rename decorating_pipe to logging_pipe. Add plugin_id to plugin log. Move logger init from file to in-code initialization and change logging file to zellij directory. Change format of timestamp.
Diffstat (limited to 'zellij-client')
-rw-r--r--zellij-client/Cargo.toml1
-rw-r--r--zellij-client/src/lib.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/zellij-client/Cargo.toml b/zellij-client/Cargo.toml
index 5a2e314a3..64241f585 100644
--- a/zellij-client/Cargo.toml
+++ b/zellij-client/Cargo.toml
@@ -12,6 +12,7 @@ license = "MIT"
mio = "0.7.11"
termbg = "0.2.3"
zellij-utils = { path = "../zellij-utils/", version = "0.15.0" }
+log = "0.4.14"
[dev-dependencies]
insta = "1.6.0"
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs
index 90732024d..d456103aa 100644
--- a/zellij-client/src/lib.rs
+++ b/zellij-client/src/lib.rs
@@ -3,6 +3,7 @@ pub mod os_input_output;
mod command_is_executing;
mod input_handler;
+use log::info;
use std::env::current_exe;
use std::io::{self, Write};
use std::path::Path;
@@ -291,6 +292,7 @@ pub fn start_client(
);
os_input.disable_mouse();
+ info!("{}", exit_msg);
os_input.unset_raw_mode(0);
let mut stdout = os_input.get_stdout_writer();
let _ = stdout.write(goodbye_message.as_bytes()).unwrap();