diff options
author | Nathan Lilienthal <nathan@nixpulvis.com> | 2019-01-06 19:06:57 -0500 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-01-07 00:06:57 +0000 |
commit | 04707cbba630e3e4ad6b4200bef8ae7888c49e3b (patch) | |
tree | bd04f4964d4c4ad67cd565b38172b488172acfcc /src/display.rs | |
parent | dfc30eeef5eb6df9f658e62875e5cde93173e37b (diff) | |
download | alacritty-04707cbba630e3e4ad6b4200bef8ae7888c49e3b.tar.gz alacritty-04707cbba630e3e4ad6b4200bef8ae7888c49e3b.zip |
Normalize Log Message Strings
The general style for errors, warnings and info messages is to start
with a capitalized letter and end without a period. The main exception
is when dealing with nouns that are clearer with special case handling,
e.g. "macOS failed to work" or "ioctl is borked".
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/display.rs b/src/display.rs index b1575c58..d5a8978b 100644 --- a/src/display.rs +++ b/src/display.rs @@ -144,7 +144,7 @@ impl Display { let mut window = Window::new(&options, config.window())?; let dpr = window.hidpi_factor(); - info!("device_pixel_ratio: {}", dpr); + info!("Device pixel ratio: {}", dpr); // get window properties for initializing the other subsystems let mut viewport_size = window.inner_size_pixels() @@ -241,15 +241,16 @@ impl Display { // Initialize glyph cache let glyph_cache = { - info!("Initializing glyph cache"); + info!("Initializing glyph cache..."); let init_start = ::std::time::Instant::now(); let cache = renderer.with_loader(|mut api| GlyphCache::new(rasterizer, &font, &mut api))?; let stop = init_start.elapsed(); - let stop_f = stop.as_secs() as f64 + f64::from(stop.subsec_nanos()) / 1_000_000_000f64; - info!("Finished initializing glyph cache in {}", stop_f); + let stop_f = stop.as_secs() as f64 + + f64::from(stop.subsec_nanos()) / 1_000_000_000f64; + info!("... finished initializing glyph cache in {}s", stop_f); cache }; |