Migrate to structured logging
This commit is contained in:
1 parent
0367d5001b
commit
0baf6cadf7
13 files changed
+202
-30
No files matched your search
+4
-3
@@ -24,6 +24,7 @@ use std::ops::Add;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use std::time::{Duration, Instant};
|
||||
use log::info;
|
||||
use crate::app::AppState;
|
||||
|
||||
#[derive(Clone)]
|
||||
@@ -438,8 +439,8 @@ impl DictionaryState {
|
||||
col = col.push(lazy_line);
|
||||
}
|
||||
|
||||
println!("Drawing {index} lines");
|
||||
println!("Words rendering time: {:?}", time.elapsed());
|
||||
info!("Drawing {index} lines");
|
||||
info!("Words rendering time: {:?}", time.elapsed());
|
||||
scrollable(col).height(Fill).into()
|
||||
}
|
||||
|
||||
@@ -554,7 +555,7 @@ impl DictionaryState {
|
||||
})
|
||||
.collect();
|
||||
|
||||
println!("Time {}", time.elapsed().as_micros());
|
||||
info!("Time {}", time.elapsed().as_micros());
|
||||
}
|
||||
|
||||
fn groups_panel(&self) -> iced::Element<'_, DictionaryMessage> {
|
||||
|
||||
Reference in new issue
Block a user