mirror of
https://github.com/zellij-org/zellij.git
synced 2024-12-18 14:41:46 +03:00
remove logs
This commit is contained in:
parent
75b07cc6c8
commit
c0e87df14c
@ -143,7 +143,6 @@ impl IpcSenderWithContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn send(&mut self, msg: ApiCommand) -> std::io::Result<()> {
|
pub fn send(&mut self, msg: ApiCommand) -> std::io::Result<()> {
|
||||||
eprintln!("IpcSender sent {:?}", msg);
|
|
||||||
let command = bincode::serialize(&(self.err_ctx, msg)).unwrap();
|
let command = bincode::serialize(&(self.err_ctx, msg)).unwrap();
|
||||||
let x = self.sender.write_all(&command);
|
let x = self.sender.write_all(&command);
|
||||||
self.sender.flush();
|
self.sender.flush();
|
||||||
@ -567,7 +566,6 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs, config: Config) {
|
|||||||
AppInstruction::Error(backtrace) => {
|
AppInstruction::Error(backtrace) => {
|
||||||
let _ = send_server_instructions.send(ApiCommand::Quit);
|
let _ = send_server_instructions.send(ApiCommand::Quit);
|
||||||
let _ = pty_thread.join();
|
let _ = pty_thread.join();
|
||||||
//IpcSenderWithContext::new().send(ApiCommand::Quit);
|
|
||||||
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
||||||
let _ = screen_thread.join();
|
let _ = screen_thread.join();
|
||||||
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
||||||
@ -575,11 +573,10 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs, config: Config) {
|
|||||||
os_input.unset_raw_mode(0);
|
os_input.unset_raw_mode(0);
|
||||||
let goto_start_of_last_line = format!("\u{1b}[{};{}H", full_screen_ws.rows, 1);
|
let goto_start_of_last_line = format!("\u{1b}[{};{}H", full_screen_ws.rows, 1);
|
||||||
let error = format!("{}\n{}", goto_start_of_last_line, backtrace);
|
let error = format!("{}\n{}", goto_start_of_last_line, backtrace);
|
||||||
//let _ = os_input
|
let _ = os_input
|
||||||
// .get_stdout_writer()
|
.get_stdout_writer()
|
||||||
// .write(error.as_bytes())
|
.write(error.as_bytes())
|
||||||
// .unwrap();
|
.unwrap();
|
||||||
eprintln!("{}", error);
|
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
AppInstruction::ToScreen(instruction) => {
|
AppInstruction::ToScreen(instruction) => {
|
||||||
@ -596,7 +593,6 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs, config: Config) {
|
|||||||
|
|
||||||
let _ = send_server_instructions.send(ApiCommand::Quit);
|
let _ = send_server_instructions.send(ApiCommand::Quit);
|
||||||
let _ = pty_thread.join().unwrap();
|
let _ = pty_thread.join().unwrap();
|
||||||
//IpcSenderWithContext::new().send(ApiCommand::Quit);
|
|
||||||
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
||||||
screen_thread.join().unwrap();
|
screen_thread.join().unwrap();
|
||||||
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
||||||
|
@ -197,7 +197,6 @@ fn stream_terminal_bytes(pid: RawFd, os_input: Box<dyn OsApi>, debug: bool) -> J
|
|||||||
let mut err_ctx = OPENCALLS.with(|ctx| *ctx.borrow());
|
let mut err_ctx = OPENCALLS.with(|ctx| *ctx.borrow());
|
||||||
task::spawn({
|
task::spawn({
|
||||||
async move {
|
async move {
|
||||||
eprintln!("New task spawned");
|
|
||||||
err_ctx.add_call(ContextType::AsyncTask);
|
err_ctx.add_call(ContextType::AsyncTask);
|
||||||
let mut send_server_instructions = IpcSenderWithContext::new();
|
let mut send_server_instructions = IpcSenderWithContext::new();
|
||||||
send_server_instructions.update(err_ctx);
|
send_server_instructions.update(err_ctx);
|
||||||
|
@ -173,8 +173,6 @@ fn handle_stream(
|
|||||||
send_pty_instructions.update(err_ctx);
|
send_pty_instructions.update(err_ctx);
|
||||||
send_app_instructions.update(err_ctx);
|
send_app_instructions.update(err_ctx);
|
||||||
|
|
||||||
eprintln!("Server {} Received {:?}", km, decoded);
|
|
||||||
|
|
||||||
match decoded {
|
match decoded {
|
||||||
ApiCommand::OpenFile(file_name) => {
|
ApiCommand::OpenFile(file_name) => {
|
||||||
let path = PathBuf::from(file_name);
|
let path = PathBuf::from(file_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user