Change log level to Info for release builds
This commit is contained in:
parent
d39037f3e8
commit
8efb5c9907
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ const PORT: u16 = 44444;
|
||||||
|
|
||||||
fn main() -> Result<(), ()> {
|
fn main() -> Result<(), ()> {
|
||||||
WriteLogger::init(
|
WriteLogger::init(
|
||||||
LevelFilter::Debug,
|
#[cfg(debug_assertions)]{LevelFilter::Debug},
|
||||||
|
#[cfg(not(debug_assertions))]{LevelFilter::Info},
|
||||||
Default::default(),
|
Default::default(),
|
||||||
std::fs::File::create("/tmp/fantastic.log").unwrap()
|
std::fs::File::create("/tmp/fantastic.log").unwrap()
|
||||||
).unwrap();
|
).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue