mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
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.
This commit is contained in:
parent
e61c28e451
commit
cc33bec730
1 changed files with 5 additions and 3 deletions
|
@ -128,9 +128,11 @@ fn main() {
|
||||||
/// config change monitor, and runs the main display loop.
|
/// config change monitor, and runs the main display loop.
|
||||||
fn run(window_event_loop: GlutinEventLoop<Event>, config: Config) -> Result<(), Box<dyn Error>> {
|
fn run(window_event_loop: GlutinEventLoop<Event>, config: Config) -> Result<(), Box<dyn Error>> {
|
||||||
info!("Welcome to Alacritty");
|
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
|
// Set environment variables
|
||||||
tty::setup_env(&config);
|
tty::setup_env(&config);
|
||||||
|
|
Loading…
Reference in a new issue