Change log level to Info for release builds

This commit is contained in:
NGnius (Graham) 2022-07-09 12:41:02 -04:00
parent d39037f3e8
commit 8efb5c9907

View file

@ -12,7 +12,8 @@ const PORT: u16 = 44444;
fn main() -> Result<(), ()> {
WriteLogger::init(
LevelFilter::Debug,
#[cfg(debug_assertions)]{LevelFilter::Debug},
#[cfg(not(debug_assertions))]{LevelFilter::Info},
Default::default(),
std::fs::File::create("/tmp/fantastic.log").unwrap()
).unwrap();