Fix log suppression to occur when running remote process and not logging to a file

pull/55/head v0.14.1
Chip Senkbeil 3 years ago
parent cad8ed5ac9
commit 3c15a90886
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

4
Cargo.lock generated

@ -216,7 +216,7 @@ checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8"
[[package]]
name = "distant"
version = "0.15.0"
version = "0.14.1"
dependencies = [
"assert_cmd",
"assert_fs",
@ -239,7 +239,7 @@ dependencies = [
[[package]]
name = "distant-core"
version = "0.15.0"
version = "0.14.1"
dependencies = [
"assert_fs",
"bytes",

@ -3,7 +3,7 @@ name = "distant"
description = "Operate on a remote computer through file and process manipulation"
categories = ["command-line-utilities"]
keywords = ["cli"]
version = "0.15.0"
version = "0.14.1"
authors = ["Chip Senkbeil <chip@senkbeil.org>"]
edition = "2018"
homepage = "https://github.com/chipsenkbeil/distant"
@ -21,7 +21,7 @@ codegen-units = 1
[dependencies]
derive_more = { version = "0.99.16", default-features = false, features = ["display", "from", "error", "is_variant"] }
distant-core = { version = "=0.15.0", path = "core", features = ["structopt"] }
distant-core = { version = "=0.14.1", path = "core", features = ["structopt"] }
flexi_logger = "0.18.0"
fork = "0.1.18"
lazy_static = "1.4.0"

@ -2,7 +2,7 @@
name = "distant-core"
description = "Core library for distant, enabling operation on a remote computer through file and process manipulation"
categories = ["network-programming"]
version = "0.15.0"
version = "0.14.1"
authors = ["Chip Senkbeil <chip@senkbeil.org>"]
edition = "2018"
homepage = "https://github.com/chipsenkbeil/distant"

@ -48,7 +48,7 @@ fn init_logging(opt: &opt::CommonOpt, is_remote_process: bool) -> flexi_logger::
// Without this, CI tests can sporadically fail when getting the exit code of a
// process because an error log is provided about failing to broadcast a response
// on the client side
if opt.quiet || (is_remote_process && opt.log_file.is_some()) {
if opt.quiet || (is_remote_process && opt.log_file.is_none()) {
builder.module(module, LevelFilter::Off);
}
}

Loading…
Cancel
Save