Compare commits

...

2 commits

Author SHA1 Message Date
Arnab Chakraborty 5d4c8cabf2 Update lib.rs 2024-06-27 01:29:08 +05:30
Arnab Chakraborty 73b286df12 Don't want only debug logs lol 2024-06-27 01:24:35 +05:30

View file

@ -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()),
)