satman mgmt: get logger unconditionally
This commit is contained in:
parent
ae4d5a4228
commit
aadb6fc22d
|
@ -27,7 +27,7 @@ pub fn byte_to_level_filter(level_byte: u8) -> Result<LevelFilter> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_logger_buffer_pred() -> LogBufferRef<'static> {
|
fn get_logger_buffer() -> LogBufferRef<'static> {
|
||||||
let logger = unsafe { BufferLogger::get_logger().as_mut().unwrap() };
|
let logger = unsafe { BufferLogger::get_logger().as_mut().unwrap() };
|
||||||
loop {
|
loop {
|
||||||
if let Some(buffer_ref) = logger.buffer() {
|
if let Some(buffer_ref) = logger.buffer() {
|
||||||
|
@ -36,10 +36,6 @@ fn get_logger_buffer_pred() -> LogBufferRef<'static> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_logger_buffer() -> LogBufferRef<'static> {
|
|
||||||
get_logger_buffer_pred()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_log() {
|
pub fn clear_log() {
|
||||||
let mut buffer = get_logger_buffer();
|
let mut buffer = get_logger_buffer();
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
|
|
Loading…
Reference in New Issue