mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-06-30 10:13:28 +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
|
||||
if std::env::var("RUST_LOG") == Err(std::env::VarError::NotPresent) {
|
||||
// let level = if cfg!(debug_assertions) {
|
||||
// "debug"
|
||||
// } else {
|
||||
// "info"
|
||||
// };
|
||||
|
||||
let level = "debug";
|
||||
let level = if cfg!(debug_assertions) {
|
||||
"debug"
|
||||
} else {
|
||||
"info"
|
||||
};
|
||||
|
||||
std::env::set_var(
|
||||
"RUST_LOG",
|
||||
|
@ -264,7 +262,7 @@ impl Node {
|
|||
.with_file(true)
|
||||
.with_line_number(true)
|
||||
.with_ansi(false)
|
||||
.with_target(false)
|
||||
.with_target(true)
|
||||
.with_writer(logfile)
|
||||
.with_filter(EnvFilter::from_default_env()),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue