diff --git a/CHANGELOG.md b/CHANGELOG.md index a2f9f27efcf..59559f5eddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,14 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [3.116.2](https://github.com/metalbear-co/mirrord/tree/3.116.2) - 2024-09-05 + + +### Changed + +- Add option to have logs when running ext commands + + ## [3.116.1](https://github.com/metalbear-co/mirrord/tree/3.116.1) - 2024-09-04 diff --git a/Cargo.lock b/Cargo.lock index e8f1c48d752..41adb7d2ed1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2101,7 +2101,7 @@ dependencies = [ [[package]] name = "fileops" -version = "3.116.1" +version = "3.116.2" dependencies = [ "libc", ] @@ -3107,7 +3107,7 @@ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "issue1317" -version = "3.116.1" +version = "3.116.2" dependencies = [ "actix-web", "env_logger 0.11.5", @@ -3117,7 +3117,7 @@ dependencies = [ [[package]] name = "issue1776" -version = "3.116.1" +version = "3.116.2" dependencies = [ "errno 0.3.9", "libc", @@ -3126,7 +3126,7 @@ dependencies = [ [[package]] name = "issue1776portnot53" -version = "3.116.1" +version = "3.116.2" dependencies = [ "libc", "socket2", @@ -3134,14 +3134,14 @@ dependencies = [ [[package]] name = "issue1899" -version = "3.116.1" +version = "3.116.2" dependencies = [ "libc", ] [[package]] name = "issue2001" -version = "3.116.1" +version = "3.116.2" dependencies = [ "libc", ] @@ -3466,7 +3466,7 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "listen_ports" -version = "3.116.1" +version = "3.116.2" [[package]] name = "local-channel" @@ -3694,7 +3694,7 @@ checksum = "c9be0862c1b3f26a88803c4a49de6889c10e608b3ee9344e6ef5b45fb37ad3d1" [[package]] name = "mirrord" -version = "3.116.1" +version = "3.116.2" dependencies = [ "actix-codec", "clap", @@ -3746,7 +3746,7 @@ dependencies = [ [[package]] name = "mirrord-agent" -version = "3.116.1" +version = "3.116.2" dependencies = [ "actix-codec", "async-trait", @@ -3803,7 +3803,7 @@ dependencies = [ [[package]] name = "mirrord-analytics" -version = "3.116.1" +version = "3.116.2" dependencies = [ "assert-json-diff", "base64 0.22.1", @@ -3817,7 +3817,7 @@ dependencies = [ [[package]] name = "mirrord-auth" -version = "3.116.1" +version = "3.116.2" dependencies = [ "bcder", "chrono", @@ -3838,7 +3838,7 @@ dependencies = [ [[package]] name = "mirrord-config" -version = "3.116.1" +version = "3.116.2" dependencies = [ "bimap", "bitflags 2.6.0", @@ -3860,7 +3860,7 @@ dependencies = [ [[package]] name = "mirrord-config-derive" -version = "3.116.1" +version = "3.116.2" dependencies = [ "proc-macro2", "proc-macro2-diagnostics", @@ -3870,7 +3870,7 @@ dependencies = [ [[package]] name = "mirrord-console" -version = "3.116.1" +version = "3.116.2" dependencies = [ "bincode", "drain", @@ -3886,7 +3886,7 @@ dependencies = [ [[package]] name = "mirrord-intproxy" -version = "3.116.1" +version = "3.116.2" dependencies = [ "bytes", "futures", @@ -3913,7 +3913,7 @@ dependencies = [ [[package]] name = "mirrord-intproxy-protocol" -version = "3.116.1" +version = "3.116.2" dependencies = [ "bincode", "mirrord-protocol", @@ -3923,7 +3923,7 @@ dependencies = [ [[package]] name = "mirrord-kube" -version = "3.116.1" +version = "3.116.2" dependencies = [ "actix-codec", "async-stream", @@ -3951,7 +3951,7 @@ dependencies = [ [[package]] name = "mirrord-layer" -version = "3.116.1" +version = "3.116.2" dependencies = [ "actix-codec", "base64 0.22.1", @@ -3998,7 +3998,7 @@ dependencies = [ [[package]] name = "mirrord-layer-macro" -version = "3.116.1" +version = "3.116.2" dependencies = [ "proc-macro2", "quote", @@ -4007,7 +4007,7 @@ dependencies = [ [[package]] name = "mirrord-macros" -version = "3.116.1" +version = "3.116.2" dependencies = [ "proc-macro2", "proc-macro2-diagnostics", @@ -4017,7 +4017,7 @@ dependencies = [ [[package]] name = "mirrord-operator" -version = "3.116.1" +version = "3.116.2" dependencies = [ "base64 0.22.1", "bincode", @@ -4051,7 +4051,7 @@ dependencies = [ [[package]] name = "mirrord-progress" -version = "3.116.1" +version = "3.116.2" dependencies = [ "enum_dispatch", "indicatif", @@ -4085,7 +4085,7 @@ dependencies = [ [[package]] name = "mirrord-sip" -version = "3.116.1" +version = "3.116.2" dependencies = [ "apple-codesign", "object 0.36.3", @@ -4098,7 +4098,7 @@ dependencies = [ [[package]] name = "mirrord-vpn" -version = "3.116.1" +version = "3.116.2" dependencies = [ "futures", "ipnet", @@ -4448,7 +4448,7 @@ dependencies = [ [[package]] name = "outgoing" -version = "3.116.1" +version = "3.116.2" [[package]] name = "overload" @@ -5516,21 +5516,21 @@ dependencies = [ [[package]] name = "rust-bypassed-unix-socket" -version = "3.116.1" +version = "3.116.2" dependencies = [ "tokio", ] [[package]] name = "rust-e2e-fileops" -version = "3.116.1" +version = "3.116.2" dependencies = [ "libc", ] [[package]] name = "rust-unix-socket-client" -version = "3.116.1" +version = "3.116.2" dependencies = [ "tokio", ] diff --git a/Cargo.toml b/Cargo.toml index 7329cc9ff5c..bbce8b98ea5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ resolver = "2" # latest commits on rustls suppress certificate verification [workspace.package] -version = "3.116.1" +version = "3.116.2" edition = "2021" license = "MIT" readme = "README.md" diff --git a/mirrord/cli/src/main.rs b/mirrord/cli/src/main.rs index 85f06a4a615..78fdae795bf 100644 --- a/mirrord/cli/src/main.rs +++ b/mirrord/cli/src/main.rs @@ -539,10 +539,16 @@ fn main() -> miette::Result<()> { let (signal, watch) = drain::channel(); + // There are situations where even if running "ext" commands that shouldn't log, we want those + // to log to be able to debug issues. + let force_log = std::env::var("MIRRORD_FORCE_LOG") + .map(|s| s.parse().unwrap_or(false)) + .unwrap_or(false); + let res: Result<(), CliError> = rt.block_on(async move { if let Ok(console_addr) = std::env::var("MIRRORD_CONSOLE_ADDR") { mirrord_console::init_async_logger(&console_addr, watch.clone(), 124).await?; - } else if !init_ext_error_handler(&cli.commands) { + } else if force_log || !init_ext_error_handler(&cli.commands) { registry() .with(fmt::layer().with_writer(std::io::stderr)) .with(EnvFilter::from_default_env())