ssh: Log error when remote server panics (#18853)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2024-10-08 12:57:47 +02:00 committed by GitHub
parent be531653a4
commit f0566d54eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 51 additions and 4 deletions

View file

@ -37,7 +37,7 @@ fn main() {
#[cfg(not(windows))]
fn main() -> Result<()> {
use remote_server::unix::{execute_proxy, execute_run, init_logging};
use remote_server::unix::{execute_proxy, execute_run, init};
let cli = Cli::parse();
@ -48,11 +48,11 @@ fn main() -> Result<()> {
stdin_socket,
stdout_socket,
}) => {
init_logging(Some(log_file))?;
init(Some(log_file))?;
execute_run(pid_file, stdin_socket, stdout_socket)
}
Some(Commands::Proxy { identifier }) => {
init_logging(None)?;
init(None)?;
execute_proxy(identifier)
}
Some(Commands::Version) => {