Change logging level for release and debug builds
This commit is contained in:
parent
03405dfb79
commit
54ef5e9901
@ -22,7 +22,11 @@ pub fn init() {
|
|||||||
message = message,
|
message = message,
|
||||||
))
|
))
|
||||||
})
|
})
|
||||||
.level(log::LevelFilter::Debug)
|
.level(if cfg!(debug_assertions) {
|
||||||
|
log::LevelFilter::Debug
|
||||||
|
} else {
|
||||||
|
log::LevelFilter::Info
|
||||||
|
})
|
||||||
.chain(std::io::stdout())
|
.chain(std::io::stdout())
|
||||||
.chain(fern::log_file("output.log").unwrap())
|
.chain(fern::log_file("output.log").unwrap())
|
||||||
.apply()
|
.apply()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user