|
|
@ -61,14 +61,6 @@ pub fn init() -> RagResult<()> {
|
|
|
|
Ok(set_logger(&LOGGER).map(|()| set_max_level(LevelFilter::Info))?)
|
|
|
|
Ok(set_logger(&LOGGER).map(|()| set_max_level(LevelFilter::Info))?)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Ok(set_logger(|max_log_level| {
|
|
|
|
|
|
|
|
// max_log_level.set(LogLevelFilter::Info);
|
|
|
|
|
|
|
|
// Box::new(Logger)
|
|
|
|
|
|
|
|
// })?)
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pub fn set_level_error() {
|
|
|
|
pub fn set_level_error() {
|
|
|
|
set_max_level(LevelFilter::Error);
|
|
|
|
set_max_level(LevelFilter::Error);
|
|
|
|
}
|
|
|
|
}
|
|
|
|