This commit is contained in:
rustdesk 2022-05-12 17:50:00 +08:00
parent c1bad84a86
commit 2e75028d83
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ Desktop versions use [sciter](https://sciter.com/) for GUI, please download scit
- run `cargo run` - 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 ## How to build on Linux

View File

@ -39,12 +39,12 @@ fn main() {
println!("{}", crate::VERSION); println!("{}", crate::VERSION);
return; return;
} }
#[cfg(feature = "inline")] #[cfg(not(feature = "inline"))]
{ {
use hbb_common::env_logger::*; use hbb_common::env_logger::*;
init_from_env(Env::default().filter_or(DEFAULT_FILTER_ENV, "info")); 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(); let mut path = hbb_common::config::Config::log_path();
if args.len() > 0 && args[0].starts_with("--") { if args.len() > 0 && args[0].starts_with("--") {