Skip to content

Commit

Permalink
Fix log suppression to occur when running remote process and not logg…
Browse files Browse the repository at this point in the history
…ing to a file
  • Loading branch information
chipsenkbeil committed Sep 19, 2021
1 parent cad8ed5 commit 3c15a90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
edition = "2018"
homepage = "https://github.com/chipsenkbeil/distant"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
edition = "2018"
homepage = "https://github.com/chipsenkbeil/distant"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 3c15a90

Please sign in to comment.