aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-01-22 23:48:46 +0100
committerGitHub <noreply@github.com>2020-01-22 23:48:46 +0100
commitcc33bec7309a6071e3b89ea8d61907db294c2cc9 (patch)
tree427c84d473a7319357725579ceeee6d4232991e9 /alacritty/src
parente61c28e451526d396131b0a1e9598705d56b2714 (diff)
downloadr-alacritty-cc33bec7309a6071e3b89ea8d61907db294c2cc9.tar.gz
r-alacritty-cc33bec7309a6071e3b89ea8d61907db294c2cc9.tar.bz2
r-alacritty-cc33bec7309a6071e3b89ea8d61907db294c2cc9.zip
Add debug log for missing config
We currently log whenever we fall back to the default config because of an error in the config itself. We also log when the config was successfully loaded and where it was loaded from. The only scenario where no config related message is logged is when there is no configuration file present. Logging this case should make it easier to debug issues like #3240, without requiring any knowledge from maintainers about this edgecase.
Diffstat (limited to 'alacritty/src')
-rw-r--r--alacritty/src/main.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs
index 64e0b9cf..db08245a 100644
--- a/alacritty/src/main.rs
+++ b/alacritty/src/main.rs
@@ -128,9 +128,11 @@ fn main() {
/// config change monitor, and runs the main display loop.
fn run(window_event_loop: GlutinEventLoop<Event>, config: Config) -> Result<(), Box<dyn Error>> {
info!("Welcome to Alacritty");
- if let Some(config_path) = &config.config_path {
- info!("Configuration loaded from \"{}\"", config_path.display());
- };
+
+ match &config.config_path {
+ Some(config_path) => info!("Configuration loaded from \"{}\"", config_path.display()),
+ None => info!("No configuration file found"),
+ }
// Set environment variables
tty::setup_env(&config);