From 2e75028d830dac7007a2f09e59479ad9f2a78aef Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 12 May 2022 17:50:00 +0800 Subject: [PATCH] fix log --- README.md | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a558e1c4..2f76d6605 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Desktop versions use [sciter](https://sciter.com/) for GUI, please download scit - run `cargo run` -## [Build on Windows](https://rustdesk.com/docs/en/dev/build/) +## [Build](https://rustdesk.com/docs/en/dev/build/) ## How to build on Linux diff --git a/src/main.rs b/src/main.rs index b5b88a14f..d802b8ae9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,12 +39,12 @@ fn main() { println!("{}", crate::VERSION); return; } - #[cfg(feature = "inline")] + #[cfg(not(feature = "inline"))] { use hbb_common::env_logger::*; init_from_env(Env::default().filter_or(DEFAULT_FILTER_ENV, "info")); } - #[cfg(not(feature = "inline"))] + #[cfg(feature = "inline")] { let mut path = hbb_common::config::Config::log_path(); if args.len() > 0 && args[0].starts_with("--") {