mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
refactor(config): Print filename at very beginning
There have now been several instances of people reporting that their bars are not found and polybar not printing the config file name because the error is thrown first, making it very difficult to debug
This commit is contained in:
parent
9db3e7f251
commit
482876b63a
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,8 @@ config::config(const logger& logger, string&& path, string&& bar)
|
|||
throw application_error("Could not find config file: " + m_file);
|
||||
}
|
||||
|
||||
m_log.info("Loading config: %s", m_file);
|
||||
|
||||
parse_file();
|
||||
copy_inherited();
|
||||
|
||||
|
@ -43,7 +45,6 @@ config::config(const logger& logger, string&& path, string&& bar)
|
|||
throw application_error("Undefined bar: " + m_barname);
|
||||
}
|
||||
|
||||
m_log.info("Loaded %s", m_file);
|
||||
m_log.trace("config: Current bar section: [%s]", section());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue