diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-02-13 15:59:04 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:47:49 +0530 |
| commit | c0e87df14ccde9c375e60d1d35f7704c978c7312 (patch) | |
| tree | 23ba35787fbfe3b3cade94b912ab7ab0a9a4bcdf /src | |
| parent | Undo some changes (diff) | |
| download | sl0ppij-c0e87df14ccde9c375e60d1d35f7704c978c7312.tar.gz sl0ppij-c0e87df14ccde9c375e60d1d35f7704c978c7312.tar.xz sl0ppij-c0e87df14ccde9c375e60d1d35f7704c978c7312.zip | |
remove logs
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/mod.rs | 12 | ||||
| -rw-r--r-- | src/common/pty_bus.rs | 1 | ||||
| -rw-r--r-- | src/server/mod.rs | 2 |
3 files changed, 4 insertions, 11 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs index 7ed80562..674c3ac3 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -143,7 +143,6 @@ impl IpcSenderWithContext { } pub fn send(&mut self, msg: ApiCommand) -> std::io::Result<()> { - eprintln!("IpcSender sent {:?}", msg); let command = bincode::serialize(&(self.err_ctx, msg)).unwrap(); let x = self.sender.write_all(&command); self.sender.flush(); @@ -567,7 +566,6 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs, config: Config) { AppInstruction::Error(backtrace) => { let _ = send_server_instructions.send(ApiCommand::Quit); let _ = pty_thread.join(); - //IpcSenderWithContext::new().send(ApiCommand::Quit); let _ = send_screen_instructions.send(ScreenInstruction::Quit); let _ = screen_thread.join(); 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); 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 _ = os_input - // .get_stdout_writer() - // .write(error.as_bytes()) - // .unwrap(); - eprintln!("{}", error); + let _ = os_input + .get_stdout_writer() + .write(error.as_bytes()) + .unwrap(); std::process::exit(1); } 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 _ = pty_thread.join().unwrap(); - //IpcSenderWithContext::new().send(ApiCommand::Quit); let _ = send_screen_instructions.send(ScreenInstruction::Quit); screen_thread.join().unwrap(); let _ = send_plugin_instructions.send(PluginInstruction::Quit); diff --git a/src/common/pty_bus.rs b/src/common/pty_bus.rs index 840d11e4..3c5183e9 100644 --- a/src/common/pty_bus.rs +++ b/src/common/pty_bus.rs @@ -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()); task::spawn({ async move { - eprintln!("New task spawned"); err_ctx.add_call(ContextType::AsyncTask); let mut send_server_instructions = IpcSenderWithContext::new(); send_server_instructions.update(err_ctx); diff --git a/src/server/mod.rs b/src/server/mod.rs index 95fcd715..cd294c85 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -173,8 +173,6 @@ fn handle_stream( send_pty_instructions.update(err_ctx); send_app_instructions.update(err_ctx); - eprintln!("Server {} Received {:?}", km, decoded); - match decoded { ApiCommand::OpenFile(file_name) => { let path = PathBuf::from(file_name); |
