1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Reduce info! logging noise

This commit is contained in:
Joe Wilm 2017-07-07 10:35:12 -07:00
parent 08b5ae52c1
commit 150d5bf98f
3 changed files with 5 additions and 13 deletions

View file

@ -144,7 +144,7 @@ impl Display {
.expect("glutin returns window size");
let dpr = window.hidpi_factor();
info!("device_pixel_ratio: {}", dpr);
debug!("device_pixel_ratio: {}", dpr);
let rasterizer = font::Rasterizer::new(dpi.x(), dpi.y(), dpr, config.use_thin_strokes())?;
@ -153,7 +153,7 @@ impl Display {
// Initialize glyph cache
let glyph_cache = {
info!("Initializing glyph cache");
debug!("Initializing glyph cache");
let init_start = ::std::time::Instant::now();
let cache = renderer.with_loader(|mut api| {
@ -162,7 +162,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;
info!("Finished initializing glyph cache in {}", stop_f);
debug!("Finished initializing glyph cache in {}", stop_f);
cache
};
@ -180,7 +180,7 @@ impl Display {
let width = cell_width * dimensions.columns_u32();
let height = cell_height * dimensions.lines_u32();
let size = Size { width: Pixels(width), height: Pixels(height) };
info!("set_inner_size: {}", size);
trace!("set_inner_size: {}", size);
let viewport_size = Size {
width: Pixels(width + 2 * config.padding().x as u32),
@ -188,7 +188,7 @@ impl Display {
};
window.set_inner_size(&viewport_size);
renderer.resize(viewport_size.width.0 as _, viewport_size.height.0 as _);
info!("Cell Size: ({} x {})", cell_width, cell_height);
debug!("Cell Size: ({} x {})", cell_width, cell_height);
let size_info = SizeInfo {
width: viewport_size.width.0 as f32,

View file

@ -91,12 +91,6 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> {
// The display manages a window and can draw the terminal
let mut display = Display::new(&config, &options)?;
info!(
"PTY Dimensions: {:?} x {:?}",
display.size().lines(),
display.size().cols()
);
// Create the terminal
//
// This object contains all of the state about what's being displayed. It's

View file

@ -964,8 +964,6 @@ impl ShaderProgram {
-1., 1.);
let projection: [[f32; 4]; 4] = ortho.into();
info!("width: {}, height: {}", width, height);
unsafe {
gl::UniformMatrix4fv(self.u_projection,
1, gl::FALSE, projection.as_ptr() as *const _);