remove config log

This commit is contained in:
wyhaya
2019-10-15 13:54:41 +08:00
parent 060da0cd5d
commit f57634862a
3 changed files with 3 additions and 7 deletions

2
Cargo.lock generated
View File

@@ -563,7 +563,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "updns" name = "updns"
version = "0.0.5" version = "0.0.6"
dependencies = [ dependencies = [
"ace 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "ace 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"async-std 0.99.9 (registry+https://github.com/rust-lang/crates.io-index)", "async-std 0.99.9 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "updns" name = "updns"
version = "0.0.5" version = "0.0.6"
edition = "2018" edition = "2018"
authors = ["wyhaya <wyhaya@gmail.com>"] authors = ["wyhaya <wyhaya@gmail.com>"]

View File

@@ -154,14 +154,10 @@ fn main() {
let cmd = Command::new(CONFIG_COMMAND).arg(&config_path).status(); let cmd = Command::new(CONFIG_COMMAND).arg(&config_path).status();
match cmd { match cmd {
Ok(status) => { Ok(status) => {
warn!(
"'{}' exits with a non-zero status code: {:?}",
CONFIG_COMMAND, status
);
if status.success() { if status.success() {
config_parse(&config_path); config_parse(&config_path);
} else { } else {
warn!( println!(
"'{}' exits with a non-zero status code: {:?}", "'{}' exits with a non-zero status code: {:?}",
CONFIG_COMMAND, status CONFIG_COMMAND, status
); );