diff options
author | Lukas Lueg <lukas.lueg@gmail.com> | 2017-01-13 08:15:06 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-23 09:14:01 -0800 |
commit | 64b42cd2f3f1da1d6a99dcdf90e6f7728ddca968 (patch) | |
tree | 4856f4884144e1cbba8a0fc8185b446193515430 /src/display.rs | |
parent | b23ed6ed4c53a6d010238643c443da6db3931a87 (diff) | |
download | alacritty-64b42cd2f3f1da1d6a99dcdf90e6f7728ddca968.tar.gz alacritty-64b42cd2f3f1da1d6a99dcdf90e6f7728ddca968.zip |
Use the log-crate instead of printing to stdout
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display.rs b/src/display.rs index 18ba33c5..b1ab3ed9 100644 --- a/src/display.rs +++ b/src/display.rs @@ -146,7 +146,7 @@ impl Display { .expect("glutin returns window size"); let dpr = window.hidpi_factor(); - println!("device_pixel_ratio: {}", dpr); + info!("device_pixel_ratio: {}", dpr); let rasterizer = font::Rasterizer::new(dpi.x(), dpi.y(), dpr, config.use_thin_strokes())?; @@ -155,7 +155,7 @@ impl Display { // Initialize glyph cache let glyph_cache = { - println!("Initializing glyph cache"); + info!("Initializing glyph cache"); let init_start = ::std::time::Instant::now(); let cache = renderer.with_loader(|mut api| { @@ -164,7 +164,7 @@ impl Display { let stop = init_start.elapsed(); let stop_f = stop.as_secs() as f64 + stop.subsec_nanos() as f64 / 1_000_000_000f64; - println!("Finished initializing glyph cache in {}", stop_f); + info!("Finished initializing glyph cache in {}", stop_f); cache }; @@ -180,11 +180,11 @@ impl Display { let width = cell_width * options.columns_u32() + 4; let height = cell_height * options.lines_u32() + 4; let size = Size { width: Pixels(width), height: Pixels(height) }; - println!("set_inner_size: {}", size); + info!("set_inner_size: {}", size); window.set_inner_size(size); renderer.resize(*size.width as _, *size.height as _); - println!("Cell Size: ({} x {})", cell_width, cell_height); + info!("Cell Size: ({} x {})", cell_width, cell_height); let size_info = SizeInfo { width: *size.width as f32, |