fix: invert inline
This commit is contained in:
parent
52fd312ff3
commit
8a6c3fe70a
@ -39,13 +39,12 @@ fn main() {
|
|||||||
println!("{}", crate::VERSION);
|
println!("{}", crate::VERSION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// TODO: 提交去除inline
|
#[cfg(not(feature = "inline"))]
|
||||||
#[cfg(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("--") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user