mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-06 23:43:32 +00:00
Compare commits
2 commits
ebc78f442b
...
5d4c8cabf2
Author | SHA1 | Date | |
---|---|---|---|
5d4c8cabf2 | |||
73b286df12 |
|
@ -235,13 +235,11 @@ impl Node {
|
||||||
|
|
||||||
// Set a default if the user hasn't set an override
|
// Set a default if the user hasn't set an override
|
||||||
if std::env::var("RUST_LOG") == Err(std::env::VarError::NotPresent) {
|
if std::env::var("RUST_LOG") == Err(std::env::VarError::NotPresent) {
|
||||||
// let level = if cfg!(debug_assertions) {
|
let level = if cfg!(debug_assertions) {
|
||||||
// "debug"
|
"debug"
|
||||||
// } else {
|
} else {
|
||||||
// "info"
|
"info"
|
||||||
// };
|
};
|
||||||
|
|
||||||
let level = "debug";
|
|
||||||
|
|
||||||
std::env::set_var(
|
std::env::set_var(
|
||||||
"RUST_LOG",
|
"RUST_LOG",
|
||||||
|
@ -264,7 +262,7 @@ impl Node {
|
||||||
.with_file(true)
|
.with_file(true)
|
||||||
.with_line_number(true)
|
.with_line_number(true)
|
||||||
.with_ansi(false)
|
.with_ansi(false)
|
||||||
.with_target(false)
|
.with_target(true)
|
||||||
.with_writer(logfile)
|
.with_writer(logfile)
|
||||||
.with_filter(EnvFilter::from_default_env()),
|
.with_filter(EnvFilter::from_default_env()),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue